@surlymochan/evalid 0.0.0-stage → 0.4.1

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 (192) hide show
  1. package/CHANGELOG.md +94 -0
  2. package/LICENSE +21 -0
  3. package/README.md +315 -2
  4. package/RELEASE_NOTES.md +124 -0
  5. package/atoms/registry.json +758 -0
  6. package/bin/xflow.js +7261 -0
  7. package/docs/adoption/README.md +128 -0
  8. package/docs/adoption/openflow-release-hardening.md +61 -0
  9. package/docs/benchmark-openflow-vs-gstack-superpowers-openspec-2026-05-25.md +81 -0
  10. package/docs/compatibility.md +52 -0
  11. package/docs/competitive-benchmark.md +108 -0
  12. package/docs/corps-operator-guide.md +75 -0
  13. package/docs/demo-proof.md +126 -0
  14. package/docs/examples-gallery.md +115 -0
  15. package/docs/fixtures/tracker-item.json +7 -0
  16. package/docs/goal-vs-codex.md +129 -0
  17. package/docs/gstack-comparison.md +88 -0
  18. package/docs/install-upgrade.md +133 -0
  19. package/docs/integrations.md +49 -0
  20. package/docs/launch-demo.md +123 -0
  21. package/docs/launch-dossier.md +180 -0
  22. package/docs/methodology.md +149 -0
  23. package/docs/npm-publish-handoff.md +96 -0
  24. package/docs/openspec-migration.md +106 -0
  25. package/docs/public-benchmark.md +68 -0
  26. package/docs/public-release.md +145 -0
  27. package/docs/quality-assessment.md +139 -0
  28. package/docs/quickstart.md +156 -0
  29. package/docs/reviewer-guide.md +43 -0
  30. package/docs/spec-kit-benchmark.md +73 -0
  31. package/docs/super-assistant-comparison.md +106 -0
  32. package/docs/superpowers-comparison.md +82 -0
  33. package/docs/team-adoption.md +123 -0
  34. package/docs/tooling-matrix.md +91 -0
  35. package/docs/walkthrough.md +76 -0
  36. package/docs/workflow-manual.md +1130 -0
  37. package/package.json +83 -4
  38. package/prompts/pencil-draft.md +46 -0
  39. package/prompts/pencil-refine.md +46 -0
  40. package/prompts/phase-artifact.md +24 -0
  41. package/prompts/phase-execution.md +32 -0
  42. package/schemas/competitor-reconstruction-contract.schema.json +91 -0
  43. package/schemas/llm-design-review-aggregate.schema.json +83 -0
  44. package/schemas/visual-benchmark.schema.json +978 -0
  45. package/schemas/workflow.schema.json +100 -0
  46. package/scripts/run-tests.mjs +23 -0
  47. package/scripts/takein_digest.py +139 -0
  48. package/specs/README.md +118 -0
  49. package/specs/architecture.md +36 -0
  50. package/specs/product.md +33 -0
  51. package/specs/workflow.md +349 -0
  52. package/src/agent_team/atoms/codex-app-bridge.js +8 -0
  53. package/src/agent_team/atoms/design/competitor-reconstruction-review.js +44 -0
  54. package/src/agent_team/atoms/design/contract-freeze.js +8 -0
  55. package/src/agent_team/atoms/design/generation-contract.js +442 -0
  56. package/src/agent_team/atoms/design/reconstruction-pack.js +246 -0
  57. package/src/agent_team/atoms/design/reference-surface-lock.js +49 -0
  58. package/src/agent_team/atoms/patch-challenge.js +19 -0
  59. package/src/agent_team/atoms/pencil/accept.js +9 -0
  60. package/src/agent_team/atoms/pencil/draft.js +365 -0
  61. package/src/agent_team/atoms/pencil/refine.js +229 -0
  62. package/src/agent_team/atoms/phase-run-dispatch.js +8 -0
  63. package/src/agent_team/atoms/team-run.js +380 -0
  64. package/src/agent_team/atoms/visual/aesthetic-review.js +231 -0
  65. package/src/agent_team/atoms/visual/benchmark-repair-plan.js +291 -0
  66. package/src/agent_team/atoms/visual/benchmark.js +1652 -0
  67. package/src/agent_team/atoms/visual/design-selection.js +23 -0
  68. package/src/agent_team/atoms/visual/direction-synthesis.js +124 -0
  69. package/src/agent_team/atoms/visual/dom-rect-export.js +129 -0
  70. package/src/agent_team/atoms/visual/image-diff.js +186 -0
  71. package/src/agent_team/atoms/visual/layout-competition.js +8 -0
  72. package/src/agent_team/atoms/visual/page-evidence-capture.js +806 -0
  73. package/src/agent_team/atoms/visual/playwright-runtime.js +8 -0
  74. package/src/agent_team/atoms/visual/review-aggregate.js +87 -0
  75. package/src/agent_team/atoms/visual/review.js +77 -0
  76. package/src/agent_team/atoms/visual/visual-report.js +197 -0
  77. package/src/agent_team/atoms/visual/visual-token-export.js +417 -0
  78. package/src/agent_team/common.js +311 -0
  79. package/src/core/atoms/agent-invoke.js +684 -0
  80. package/src/core/atoms/event/ingest.js +30 -0
  81. package/src/core/atoms/experience/digest.js +55 -0
  82. package/src/core/atoms/gate/artifact-verify.js +83 -0
  83. package/src/core/atoms/gate/competitor-contract-validate.js +119 -0
  84. package/src/core/atoms/gate/evidence-collect.js +64 -0
  85. package/src/core/atoms/gate/payload-from-phase-run.js +78 -0
  86. package/src/core/atoms/gate/visual-benchmark-validate.js +183 -0
  87. package/src/core/atoms/gate/workbench.js +79 -0
  88. package/src/core/atoms/intake/classify.js +15 -0
  89. package/src/core/atoms/intake/design-skill-select.js +16 -0
  90. package/src/core/atoms/intake/preview-or-refine.js +19 -0
  91. package/src/core/atoms/intake/recommend.js +20 -0
  92. package/src/core/atoms/intake/research-same-category.js +19 -0
  93. package/src/core/atoms/intervention/create.js +30 -0
  94. package/src/core/atoms/memory/manage.js +27 -0
  95. package/src/core/atoms/memory/mount.js +13 -0
  96. package/src/core/atoms/mission/create.js +19 -0
  97. package/src/core/atoms/mission/list.js +14 -0
  98. package/src/core/atoms/mission/show.js +26 -0
  99. package/src/core/atoms/notify/checkpoint.js +46 -0
  100. package/src/core/atoms/phase-run/complete.js +42 -0
  101. package/src/core/atoms/phase-run/fail.js +40 -0
  102. package/src/core/atoms/phase-run/persist.js +39 -0
  103. package/src/core/atoms/phase-run/start.js +30 -0
  104. package/src/core/atoms/plugin/run.js +76 -0
  105. package/src/core/atoms/policy/gate.js +90 -0
  106. package/src/core/atoms/policy/resolve.js +11 -0
  107. package/src/core/atoms/storage/sync.js +57 -0
  108. package/src/core/atoms/workflow/advance.js +25 -0
  109. package/src/core/atoms/workflow/guard.js +127 -0
  110. package/src/core/atoms/workflow/state-load.js +37 -0
  111. package/src/core/bindings.js +37 -0
  112. package/src/core/change-artifacts.js +134 -0
  113. package/src/core/competitive-score.js +265 -0
  114. package/src/core/concurrency-policy.js +35 -0
  115. package/src/core/execution-log.js +108 -0
  116. package/src/core/intake-recommendation.js +134 -0
  117. package/src/core/memory-state.js +62 -0
  118. package/src/core/mission-state.js +780 -0
  119. package/src/core/pending-gates.js +66 -0
  120. package/src/core/phase-cost.js +116 -0
  121. package/src/core/phase-run-read.js +27 -0
  122. package/src/core/policy-overlay.js +180 -0
  123. package/src/core/state-store.js +201 -0
  124. package/src/core/workflow-executor.js +1014 -0
  125. package/src/core/workflow-integrity.js +111 -0
  126. package/src/core/workflow-loader.js +163 -0
  127. package/src/core/workflow-rerun.js +84 -0
  128. package/src/core/workflow-state.js +119 -0
  129. package/src/server.js +1307 -0
  130. package/workflows/corps.yaml +481 -0
  131. package/workflows/yolo.yaml +241 -0
  132. package/xflow/README.md +76 -0
  133. package/xflow/aha/SKILL.md +82 -0
  134. package/xflow/aha/scripts/append_aha.py +50 -0
  135. package/xflow/archive/scripts/archive_change.py +338 -0
  136. package/xflow/archive/templates/merge-design.md +54 -0
  137. package/xflow/archive/templates/merge-workflow.md +26 -0
  138. package/xflow/atoms/__init__.py +6 -0
  139. package/xflow/atoms/a1_issue_create_or_patch.py +70 -0
  140. package/xflow/atoms/a2_branch_create_and_link.py +42 -0
  141. package/xflow/atoms/a3_repo_doctor.py +11 -0
  142. package/xflow/atoms/a4_project_set_status.py +11 -0
  143. package/xflow/atoms/a5_archive_commit_push_close.py +11 -0
  144. package/xflow/atoms/a6_pr_create.py +72 -0
  145. package/xflow/atoms/b1_change_scaffold.py +11 -0
  146. package/xflow/atoms/b2_status_read.py +16 -0
  147. package/xflow/atoms/b2b_status_write.py +20 -0
  148. package/xflow/atoms/b3_status_transition.py +27 -0
  149. package/xflow/atoms/b4_handoff_scaffold_or_refresh.py +11 -0
  150. package/xflow/atoms/b5_aha_append.py +11 -0
  151. package/xflow/atoms/b6_takein_digest.py +11 -0
  152. package/xflow/atoms/b6b_lookback_digest.py +11 -0
  153. package/xflow/atoms/b7_change_mission_bind.py +43 -0
  154. package/xflow/atoms/c1_mem.py +54 -0
  155. package/xflow/atoms/e6_gate_local_precheck.py +23 -0
  156. package/xflow/atoms/h1_design_lite_gate.py +74 -0
  157. package/xflow/atoms/i6a_tdd_run.py +107 -0
  158. package/xflow/atoms/i6b_tdd_proof_validate.py +184 -0
  159. package/xflow/atoms/i6c_tdd_quality_review.py +372 -0
  160. package/xflow/atoms/j1_tests_run.py +129 -0
  161. package/xflow/atoms/j4a_spec_consistency_structural.py +105 -0
  162. package/xflow/atoms/j4b_spec_delta_review.py +316 -0
  163. package/xflow/atoms/j4c_openspec_migration_map.py +121 -0
  164. package/xflow/atoms/j4d_spec_clarify_gate.py +373 -0
  165. package/xflow/atoms/j6_cr_review.py +443 -0
  166. package/xflow/atoms/k1_artifacts_complete_check.py +39 -0
  167. package/xflow/atoms/k2_merge_snippets_apply.py +11 -0
  168. package/xflow/atoms/k3_handoff_refresh.py +14 -0
  169. package/xflow/atoms/k4_mem_lesson_persist.py +65 -0
  170. package/xflow/atoms/k5_archive_publish.py +21 -0
  171. package/xflow/atoms/k6_aha_merge.py +42 -0
  172. package/xflow/atoms/tdd_lib.py +956 -0
  173. package/xflow/corps/SKILL.md +109 -0
  174. package/xflow/exec/scripts/set_issue_in_progress.py +159 -0
  175. package/xflow/goal/SKILL.md +150 -0
  176. package/xflow/handoff/SKILL.md +95 -0
  177. package/xflow/handoff/scripts/scaffold_handoff.py +304 -0
  178. package/xflow/lookback/SKILL.md +66 -0
  179. package/xflow/lookback/scripts/lookback_digest.py +46 -0
  180. package/xflow/openissue/scripts/open_issue_flow.py +438 -0
  181. package/xflow/plan/SKILL.md +47 -0
  182. package/xflow/ralph/SKILL.md +123 -0
  183. package/xflow/scripts/check_installed_xflow_skill_sync.sh +44 -0
  184. package/xflow/scripts/common.py +483 -0
  185. package/xflow/scripts/doctor.py +278 -0
  186. package/xflow/scripts/sync_installed_xflow_skill.sh +134 -0
  187. package/xflow/takein/SKILL.md +81 -0
  188. package/xflow/takein/scripts/takein_digest.py +88 -0
  189. package/xflow/yolo/SKILL.md +75 -0
  190. package/xflow/yolo/scripts/scaffold_specs_change.py +673 -0
  191. package/xflow/yolo/scripts/yolo_gate.py +312 -0
  192. package/xflow/yolo/templates/DESIGN.md +179 -0
@@ -0,0 +1,115 @@
1
+ # Examples Gallery
2
+
3
+ This page collects the smallest reviewable examples that prove xflow's public
4
+ claims without requiring a private tracker, npm publish, or a production repo.
5
+
6
+ Use it as an evaluator map: start with the clean local smoke, then move to the
7
+ workflow path that matches the change type.
8
+
9
+ ## 1. Clean Project Adoption Smoke
10
+
11
+ Best for: first-time evaluators, CI, package reviewers.
12
+
13
+ ```bash
14
+ xflow demo clean
15
+ ```
16
+
17
+ What it proves:
18
+
19
+ - a brand-new project can initialize xflow without copying internal workflow files
20
+ - `.xflow/GOAL.md` becomes a durable project artifact and passes goal audit
21
+ - doctor and `workflow validate yolo` pass against the clean consumer project
22
+
23
+ Reference docs:
24
+
25
+ - `docs/demo-proof.md`
26
+ - `docs/adoption/openflow-release-hardening.md`
27
+ - `docs/adoption/README.md`
28
+
29
+ ## 2. Goal To yolo
30
+
31
+ Best for: backend, docs, infra, and small UI changes.
32
+
33
+ ```bash
34
+ xflow init --project-root .
35
+ xflow goal set "Ship the next verified change" --project-root .
36
+ xflow goal audit --project-root . --json
37
+ xflow workflow validate yolo --project-root .
38
+ ```
39
+
40
+ What it proves:
41
+
42
+ - `.xflow/GOAL.md` is a durable project artifact, not a thread-only reminder
43
+ - `xflow:goal` is useful when yolo uses it as direction context
44
+ - the lite workflow is executable data with TDD and archive gates
45
+
46
+ Reference docs:
47
+
48
+ - `docs/goal-vs-codex.md`
49
+ - `docs/launch-demo.md`
50
+ - `docs/walkthrough.md`
51
+
52
+ ## 3. Goal To corps Proof
53
+
54
+ Best for: product, UI, competitor-led, or multi-agent work.
55
+
56
+ ```bash
57
+ xflow goal show --json
58
+ xflow goal audit --json
59
+ xflow corps --explain --json
60
+ ```
61
+
62
+ What it proves:
63
+
64
+ - corps is governed by a proof contract instead of a loose prompt chain
65
+ - visual benchmark, no-stub runtime witnesses, and final proof review are named
66
+ - goal alignment remains visible before and after heavy-track work
67
+
68
+ Reference docs:
69
+
70
+ - `docs/corps-operator-guide.md`
71
+ - `docs/launch-demo.md`
72
+ - `docs/quality-assessment.md`
73
+
74
+ ## 4. External Tracker Import
75
+
76
+ Best for: teams that already use GitHub Issues, Jira, Linear, or another tracker.
77
+
78
+ ```bash
79
+ xflow adapter import-file --input docs/fixtures/tracker-item.json --project-root .
80
+ ```
81
+
82
+ What it proves:
83
+
84
+ - external systems can supply context without owning xflow workflow truth
85
+ - local change artifacts stay reviewable inside the repository
86
+ - adapter work can be tested without live service credentials
87
+
88
+ Reference docs:
89
+
90
+ - `docs/integrations.md`
91
+ - `docs/public-benchmark.md`
92
+ - `docs/fixtures/tracker-item.json`
93
+
94
+ ## 5. Release Gate
95
+
96
+ Best for: maintainers preparing a public launch.
97
+
98
+ ```bash
99
+ xflow launch dossier
100
+ xflow launch audit --pre-publish --strict --json
101
+ xflow package preflight --check-registry --check-auth --json
102
+ ```
103
+
104
+ What it proves:
105
+
106
+ - score, goal, adoption, package, and launch claims are audited together
107
+ - the irreversible npm publish step is blocked until identity and registry
108
+ evidence are present
109
+ - missing surfaces are explicit rather than buried in prose
110
+
111
+ Reference docs:
112
+
113
+ - `docs/launch-dossier.md`
114
+ - `docs/public-release.md`
115
+ - `docs/npm-publish-handoff.md`
@@ -0,0 +1,7 @@
1
+ {
2
+ "id": "release-proof-adapter",
3
+ "source": "tracker-file",
4
+ "title": "Prove public release readiness with xflow adapter import",
5
+ "body": "Use this sample tracker item to demonstrate adapter import and artifact generation without relying on the deleted examples directory.",
6
+ "labels": ["adapter", "public-benchmark", "release"]
7
+ }
@@ -0,0 +1,129 @@
1
+ # xflow Goal vs Codex Native Goal
2
+
3
+ ## Verdict
4
+
5
+ `xflow:goal` should not compete with Codex native goals as another thread-level
6
+ reminder. It wins only when it becomes a project-level alignment contract that
7
+ `xflow:plan`, `xflow:yolo`, `xflow:corps`, `xflow:ralph`, `xflow:handoff`, and
8
+ `xflow:takein` all consume.
9
+
10
+ The target quality bar is:
11
+
12
+ ```text
13
+ Codex native goal = thread memory and completion accounting
14
+ xflow:goal = project direction anchor plus workflow alignment evidence
15
+ ```
16
+
17
+ Codex native goals are useful inside one active thread. `xflow:goal` is better
18
+ for delivery work when a team needs the objective to survive thread changes,
19
+ tool changes, workflow runs, handoff refreshes, and proof review.
20
+
21
+ ## Current Quality Assessment
22
+
23
+ | Surface | Current Grade | Evidence | Open-Source Bar |
24
+ | --- | --- | --- | --- |
25
+ | `xflow:goal` | Strong foundation | `.xflow/GOAL.md`, native goal sync boundary, shared consumption rules | Must explain why it is more durable than a thread goal |
26
+ | `xflow:yolo` | Strong | YAML-backed lite workflow, split TDD, archive order, drift tests | Must show goal alignment without adding ceremony |
27
+ | `xflow:corps` | Strong but complex | Governed `xflow corps`, `corps_proof.json`, visual proof, no-stub runtime witnesses | Must make proof language understandable to first-time users |
28
+ | `xflow:ralph` | Strong bridge | Conversation-native completion loop with verification and self-heal | Must treat `.xflow/GOAL.md` as a completion audit input |
29
+ | Skill family | Strong engine, improving packaging | skill sync/diff, tooling matrix, public benchmark | Must present the family as one ladder, not many unrelated entry points |
30
+
31
+ ## Scored Judgment
32
+
33
+ For durable project delivery, `xflow:goal` beats Codex native goal: `88/100`
34
+ versus `72/100`. Codex native goal still wins thread-local control; xflow wins
35
+ when the objective needs to become repo-owned, portable, workflow-consumed, and
36
+ auditable.
37
+
38
+ | Dimension | Weight | Codex native goal | xflow:goal | Winner |
39
+ | --- | ---: | ---: | ---: | --- |
40
+ | Thread-local control | 20 | 20 | 14 | Codex native goal |
41
+ | Durability | 20 | 10 | 20 | xflow:goal |
42
+ | Workflow consumption | 20 | 12 | 19 | xflow:goal |
43
+ | Cross-tool portability | 20 | 10 | 18 | xflow:goal |
44
+ | Auditability | 20 | 20 | 17 | Codex native goal |
45
+
46
+ The scorecard is evidence-linked. `xflow compare codex-goal --json` exposes
47
+ `evidence_refs` per dimension, including `.xflow/GOAL.md`,
48
+ `xflow goal show --json`, `xflow goal audit --json`, Codex native completion
49
+ accounting, and Codex/OpenCode skill sync checks.
50
+
51
+ Machine-readable form:
52
+
53
+ ```bash
54
+ xflow compare codex-goal --json
55
+ ```
56
+
57
+ ## Why xflow Can Beat Codex Goal
58
+
59
+ `xflow:goal` beats a native Codex goal only if these conditions are true:
60
+
61
+ 1. **Durable** - the goal is stored in the repo at `.xflow/GOAL.md` through `xflow goal set`, not only in one chat thread.
62
+ 2. **Portable** - Codex, OpenCode, Claude Code, Cursor, Gemini, and generic CLI agents can read the same artifact.
63
+ 3. **Consumable** - the goal is read before planning, yolo, corps, Ralph, handoff, and takein work.
64
+ 4. **Auditable** - completion reports say how the delivered change aligned with or deliberately diverged from the goal.
65
+ 5. **Non-invasive** - it does not replace change scope, `plan.md`, `status.json`, workflow YAML, or proof artifacts.
66
+ 6. **Native-friendly** - when Codex native goal tools are available, xflow syncs the project goal into the active thread goal instead of pretending Codex has a stable `codex goal set` CLI.
67
+
68
+ If any of these fail, `xflow:goal` is only a weaker duplicate of Codex native
69
+ goal. If all hold, it is a stronger project memory and alignment layer.
70
+
71
+ ## The Public Ladder
72
+
73
+ The skill set should be explained as a ladder:
74
+
75
+ | Step | Entry | Promise |
76
+ | --- | --- | --- |
77
+ | 1 | `xflow:goal` / `xflow goal set` | Define the durable project direction. |
78
+ | 2 | `xflow:takein` | Reload durable context before acting. |
79
+ | 3 | `xflow:plan` | Produce one reusable implementation plan. |
80
+ | 4a | `xflow:yolo` | Execute low-ceremony work with TDD and archive gates. |
81
+ | 4b | `xflow:corps` | Execute high-risk product work with governed heavy proof. |
82
+ | 5 | `xflow:ralph` | Keep conversational work moving until evidence is clean. |
83
+ | 6 | `xflow:handoff` / `xflow:aha` | Preserve current state and durable lessons. |
84
+
85
+ This ladder is the open-source story. It is easier to understand than a list of
86
+ skills, and it explains why xflow is more than Codex goal plus prompts.
87
+
88
+ ## Acceptance Gate
89
+
90
+ Before claiming the skill family is ready for public launch:
91
+
92
+ ```bash
93
+ xflow compare codex-goal --json
94
+ xflow score
95
+ xflow goal show --json
96
+ xflow goal audit --json
97
+ npm run drift:scan
98
+ npm run skill:diff
99
+ npm run release:pack
100
+ codex debug prompt-input '测试是否能看到 $xflow:goal skill'
101
+ codex debug prompt-input '测试是否能看到 $xflow:corps skill'
102
+ ```
103
+
104
+ The docs must also prove:
105
+
106
+ - `docs/tooling-matrix.md` explains the ladder.
107
+ - `docs/competitive-benchmark.md` lists goal alignment as a scored dimension.
108
+ - `xflow/goal/SKILL.md` states the durable advantage over Codex native goal.
109
+ - `xflow:yolo`, `xflow:corps`, and `xflow:ralph` all include goal alignment in their intake or completion contract.
110
+
111
+ ## Public Comparison Command
112
+
113
+ Use this when someone asks whether `goal` itself still matters:
114
+
115
+ ```bash
116
+ xflow compare codex-goal --json
117
+ xflow goal audit --json
118
+ ```
119
+
120
+ The comparison is intentionally narrow. Codex native goal remains the right tool
121
+ for thread-local intent and completion accounting. `xflow:goal` is better only
122
+ when the objective has to become repo-owned evidence that survives handoff and is
123
+ consumed by yolo, corps, Ralph, handoff, and takein.
124
+
125
+ Both commands expose a machine-readable `boundary` section. That section is part
126
+ of the public contract: goal is a project direction anchor, not an executor, not
127
+ a replacement for `plan.md`, `status.json`, workflow YAML, tests, or proof
128
+ artifacts. If the work needs implementation, the escalation path is goal -> plan
129
+ -> yolo/corps -> handoff or aha.
@@ -0,0 +1,88 @@
1
+ # Gstack Comparison
2
+
3
+ Use this page when someone asks whether xflow still adds value if a team already
4
+ likes Garry Tan's `gstack` workflow for Codex or Claude Code.
5
+
6
+ Primary references:
7
+
8
+ - [gstack official site](https://gstack.lol/)
9
+ - [garrytan/gstack AGENTS.md](https://github.com/garrytan/gstack/blob/main/AGENTS.md)
10
+
11
+ ## Verdict
12
+
13
+ gstack is excellent at turning one coding agent into a role-based software team
14
+ with named commands, browser QA, and release rituals.
15
+
16
+ xflow is better when the workflow truth itself must live in the repository:
17
+ versioned workflow YAML, durable project goal alignment, explicit handoff/AHA
18
+ artifacts, machine-checkable proof, and launch-readiness gates.
19
+
20
+ ```text
21
+ gstack = host-level specialist command system
22
+ xflow = repo-owned workflow runtime plus audit evidence
23
+ ```
24
+
25
+ ## Scorecard
26
+
27
+ Overall, xflow wins for repo-owned delivery rigor and public claim scrutiny:
28
+ `96/100` versus `80/100`. xflow now ties gstack on the role-shaped command surface
29
+ it set out to close, and browser-centered QA flow is also effectively a tie.
30
+
31
+ | Dimension | Weight | gstack | xflow | Winner |
32
+ | --- | ---: | ---: | ---: | --- |
33
+ | Role specialization | 15 | 15 | 15 | Tie |
34
+ | Browser QA and sprint commands | 15 | 15 | 15 | Tie |
35
+ | Repo-owned workflow state | 15 | 9 | 15 | xflow |
36
+ | Goal alignment and project memory | 15 | 10 | 15 | xflow |
37
+ | Release gates and public readiness | 15 | 10 | 14 | xflow |
38
+ | Cross-tool host support | 10 | 9 | 11 | xflow |
39
+ | Auditability and handoff | 15 | 12 | 14 | xflow |
40
+
41
+ Machine-readable form:
42
+
43
+ ```bash
44
+ xflow compare gstack --json
45
+ ```
46
+
47
+ ## When Gstack Wins
48
+
49
+ - A team wants named slash-command roles more than repo-owned workflow data.
50
+ - The main pain is browser QA, release ritual, or specialist prompting on top of
51
+ an existing host.
52
+ - The workflow should stay mostly host-native and lightweight.
53
+
54
+ ## When xflow Wins
55
+
56
+ - Workflow order, gates, and proof must be checked into the repository.
57
+ - The team wants `.xflow/GOAL.md` to survive thread changes and be consumed by
58
+ yolo, corps, Ralph, handoff, and takein.
59
+ - The team wants named QA and host commands instead of shell-script spelunking:
60
+ `xflow qa review`, `xflow qa ship`, `xflow qa benchmark`, `xflow host status`,
61
+ `xflow host sync`, `xflow host diff`.
62
+ - The team wants explicit named roles inside the repo runtime:
63
+ `xflow role developer`, `xflow role reviewer`, `xflow role qa`,
64
+ `xflow role release`, `xflow role product`.
65
+ - Public claims must be backed by local commands such as:
66
+
67
+ ```bash
68
+ xflow compare gstack --json
69
+ xflow qa review --url http://127.0.0.1:3000 --platform-profile mobile_h5 --json
70
+ xflow qa ship --url http://127.0.0.1:3000 --platform-profile mobile_h5 --json
71
+ xflow qa benchmark --url http://127.0.0.1:3000 --platform-profile mobile_h5 --json
72
+ xflow role qa --json
73
+ xflow host status --json
74
+ xflow goal audit --json
75
+ xflow launch audit --strict --json
76
+ xflow package preflight --check-registry --check-auth --json
77
+ xflow adoption validate --json
78
+ npm run release:pack
79
+ ```
80
+
81
+ ## Fair Boundary
82
+
83
+ xflow should not pretend gstack is weak. Official gstack materials strongly
84
+ emphasize role-specialist commands, browser QA, and a release loop for Codex
85
+ and Claude Code. xflow's defensible claim is different: those behaviors become
86
+ more durable when the workflow state, handoff artifacts, QA capture defaults,
87
+ and launch gates are stored in repo-owned files instead of living mainly in
88
+ host-installed commands.
@@ -0,0 +1,133 @@
1
+ # evalid Install And Upgrade
2
+
3
+ This document defines the public install and upgrade story for source checkouts and npm-style global installs.
4
+
5
+ ## Source Checkout
6
+
7
+ ```bash
8
+ git clone <repo-url> evalid
9
+ cd evalid
10
+ npm install
11
+ npm run doctor
12
+ ```
13
+
14
+ Use source checkout mode when developing xflow itself or when testing workflow changes before publishing.
15
+
16
+ ## Global CLI
17
+
18
+ ```bash
19
+ npm install -g @surlymochan/evalid
20
+ xflow doctor
21
+ ```
22
+
23
+ The package exposes `xflow` through `package.json` bin metadata.
24
+
25
+ For local source checkout testing before publication:
26
+
27
+ ```bash
28
+ npm install -g .
29
+ xflow doctor
30
+ ```
31
+
32
+ ## Project Adoption
33
+
34
+ Inside a project that will use xflow:
35
+
36
+ ```bash
37
+ xflow init --project-root .
38
+ xflow doctor --project-root .
39
+ xflow workflow validate yolo
40
+ ```
41
+
42
+ This creates `.as-xflow/config.json` and verifies the local runtime before the first real workflow run.
43
+ The config is used by workflow aliases, issue routing defaults, and skill sync defaults where explicit CLI args or environment variables are not provided.
44
+
45
+ ## Local Release
46
+
47
+ ```bash
48
+ npm run drift:scan
49
+ npm run verify
50
+ npm run skill:sync
51
+ npm run skill:diff
52
+ xflow host status --json
53
+ ```
54
+
55
+ Use `npm run release:local` when a local release should verify the repo, run the drift scan, refresh the installed `xflow` skill, and confirm installed-skill drift is clean.
56
+
57
+ By default, `npm run skill:sync` refreshes only the Codex installed skill root
58
+ at `~/.codex/skills` so the local Codex surface stays canonical and duplicate
59
+ skill registration is avoided across multiple hosts. If `~/.codex/skills` does
60
+ not exist, it falls back to `~/.agents/skills`. `xmem` follows the same target
61
+ selection. Set `SKILL_SYNC_TARGET_DIRS` or
62
+ `.as-xflow/config.json -> skills.installed_dir` when you want an explicit
63
+ target list instead.
64
+
65
+ If you want a host-level wrapper instead of remembering shell scripts, use:
66
+
67
+ ```bash
68
+ xflow host status --json
69
+ xflow host sync
70
+ xflow host diff
71
+ ```
72
+
73
+ For package distribution readiness:
74
+
75
+ ```bash
76
+ npm run release:pack
77
+ ```
78
+
79
+ This runs verification, drift scan, installed-skill drift check, and `npm pack --dry-run`.
80
+
81
+ ## Publication Readiness
82
+
83
+ A release is not ready to publish unless all of these pass:
84
+
85
+ ```bash
86
+ npm run release:pack
87
+ xflow score
88
+ xflow goal audit --json
89
+ xflow launch audit
90
+ xflow launch audit --strict --json
91
+ xflow adoption validate --json
92
+ xflow package preflight --check-registry --check-auth --json
93
+ xflow launch audit --pre-publish --strict --json
94
+ xflow package audit --check-registry --json
95
+ xflow compare superpowers
96
+ xflow compare super-assistant
97
+ xflow compare openspec
98
+ xflow compare gstack
99
+ xflow compare spec-kit
100
+ ```
101
+
102
+ For public publication readiness, use:
103
+
104
+ ```bash
105
+ npm run publish:check
106
+ ```
107
+
108
+ This adds `npm publish --dry-run --access public` after the local release-pack gate.
109
+ Run `xflow package preflight --check-registry --check-auth --json` before the
110
+ real publish to confirm npm identity and package-name/version availability
111
+ without mutating the registry.
112
+ Run `xflow launch audit --pre-publish --strict --json` when you want the same
113
+ pre-publish package check combined with score and adoption evidence.
114
+
115
+ The package dry-run must include `README.md`, `docs/`, `workflows/`, and `xflow/`, while excluding `test/`, local config, Python caches, and Finder metadata.
116
+
117
+ ## Upgrade Checks
118
+
119
+ After pulling or installing a newer version:
120
+
121
+ ```bash
122
+ xflow doctor
123
+ npm run drift:scan
124
+ npm run skill:diff
125
+ npm run release:pack
126
+ ```
127
+
128
+ If `skill:diff` reports drift after source changes, run:
129
+
130
+ ```bash
131
+ npm run skill:sync
132
+ npm run skill:diff
133
+ ```
@@ -0,0 +1,49 @@
1
+ # Integration Matrix
2
+
3
+ evalid keeps integrations thin: external systems may supply issues, docs, CI, or project state, but workflow truth remains in local YAML, atoms, and change artifacts.
4
+
5
+ ## Integration Surfaces
6
+
7
+ | Surface | Current xflow Entry | Purpose | Status |
8
+ | --- | --- | --- | --- |
9
+ | GitHub Issues | `xflow adapter github-issue --repo owner/name --issue <number>` plus `openissue` atoms | Import issue context and create/patch issue state without coupling workflow truth to GitHub. | Implemented |
10
+ | GitHub PR | `A6.pr.create` after `A5.archive.commit_push_close` | Open review after archive commit and push. | Implemented |
11
+ | GitHub Actions | `.github/workflows/ci.yml` | Test, drift scan, package readiness, and minimal external adoption proof. | Implemented |
12
+ | Jira | `xflow adapter import-file --input jira-item.json` | Keep Jira as an issue source, not workflow source of truth. | Adapter seam implemented |
13
+ | Linear | `xflow adapter import-file --input linear-item.json` | Same as Jira: issue metadata can map into proposal/status artifacts. | Adapter seam implemented |
14
+ | Confluence | `docs/integrations.md` contract | Durable docs can link to Confluence, but root specs stay in repo. | Documented |
15
+ | CI Guard / Release Gate | `npm run release:pack`, `npm run publish:check`, `xflow adoption validate --json`, `xflow package preflight --check-registry --check-auth --json`, and `xflow package audit --check-registry --json` | Block public claims until local proof, package proof, registry proof, and real adoption evidence are green. | Implemented |
16
+ | gstack | `xflow compare gstack` and `docs/gstack-comparison.md` | Keep the comparison fair: gstack wins role-specialist host commands and browser QA; xflow wins repo-owned workflow truth, proof, and launch gates. | Implemented |
17
+ | Superpowers | `xflow compare superpowers` and `docs/superpowers-comparison.md` | Keep the comparison fair: Superpowers wins lightweight behavior guidance; xflow wins repo-local workflow evidence and launch gates. | Implemented |
18
+ | Super-Assistant | `xflow compare super-assistant` and `docs/super-assistant-comparison.md` | Keep the comparison fair: Super-Assistant wins raw enterprise connector breadth; xflow wins policy-overlay runtime, atomized provider seams, and structured proof. | Implemented |
19
+ | OpenSpec | `xflow spec openspec-map` | Map OpenSpec projects into xflow without moving files. | Implemented |
20
+ | spec-kit | `xflow compare spec-kit` and `docs/spec-kit-benchmark.md` | Keep a repeatable benchmark path against spec-kit-style delivery. | Implemented |
21
+
22
+ ## Integration Rules
23
+
24
+ - External trackers may own discussion, not workflow state.
25
+ - Repo files own specs, workflow order, gates, proof, handoff, and archive history.
26
+ - Every integration must have a command, doc, or artifact path that can be checked locally.
27
+ - Do not add a new integration claim unless `test/competitive-readiness.test.js` or a focused test protects it.
28
+
29
+ ## Minimum Adapter Contract
30
+
31
+ Every future adapter should expose:
32
+
33
+ - source system name
34
+ - source item id or URL
35
+ - mapped `change_id`
36
+ - created or updated local artifact paths
37
+ - verification command
38
+ - failure mode that leaves local specs untouched
39
+
40
+ The current built-in adapter commands satisfy this contract:
41
+
42
+ ```bash
43
+ xflow adapter import-file --input docs/fixtures/tracker-item.json --json
44
+ xflow adapter github-issue --repo owner/name --issue 123 --project-root .
45
+ ```
46
+
47
+ ## Why This Matters Against spec-kit
48
+
49
+ spec-kit is strong because it has visible extensions and integrations. xflow's answer is not to move workflow truth into every integration; it is to make integration adapters explicit, local, and testable while keeping the executable workflow core stable.
@@ -0,0 +1,123 @@
1
+ # evalid Launch Demo
2
+
3
+ Use this page when someone asks whether xflow goal is useful or whether yolo
4
+ and corps are only prompt wrappers.
5
+
6
+ ## Demo Promise
7
+
8
+ `xflow goal` is useful when it becomes the direction anchor for verified
9
+ delivery, not when it acts as another chat reminder.
10
+
11
+ The launch demo has two paths:
12
+
13
+ 1. `goal -> yolo`: a small change proves red/green TDD, quality review, archive
14
+ order, and final goal alignment.
15
+ 2. `goal -> corps proof`: a product or UI change proves the same direction can
16
+ survive heavy-track evidence, visual benchmarks, and final proof review.
17
+
18
+ ## One-Minute Overview
19
+
20
+ ```bash
21
+ xflow guide
22
+ xflow assess
23
+ xflow demo launch
24
+ xflow demo launch --json
25
+ xflow corps --explain
26
+ xflow launch audit
27
+ xflow launch dossier
28
+ ```
29
+
30
+ The JSON form is for agents and docs generators. The text form is for humans
31
+ reviewing the launch story.
32
+
33
+ ## Path 1: Goal To Yolo
34
+
35
+ ```bash
36
+ xflow init --project-root .
37
+ xflow goal set "Ship the next verified change" --project-root .
38
+ xflow goal audit --project-root . --json
39
+ xflow workflow validate yolo --project-root .
40
+ xflow workflow run yolo --project-root . \
41
+ --title "Example verified change" \
42
+ --change-type backend \
43
+ --tdd-red-command "npm test -- --grep new-behavior" \
44
+ --tdd-green-command "npm test"
45
+ ```
46
+
47
+ Proof to inspect:
48
+
49
+ - `.xflow/GOAL.md`
50
+ - `xflow goal audit --json` showing yolo/corps/Ralph/handoff/takein consumption
51
+ - `specs/changes/<change-id>/tdd/red-0.json`
52
+ - `specs/changes/<change-id>/tdd/green-0.json`
53
+ - `specs/changes/<change-id>/tdd/quality-0.json`
54
+ - final verification summary naming goal alignment
55
+
56
+ ## Path 2: Goal To Corps Proof
57
+
58
+ ```bash
59
+ xflow goal show --json
60
+ xflow goal audit --json
61
+ xflow corps --explain --json
62
+ xflow corps \
63
+ --title "Competitor-aligned workbench" \
64
+ --change-type frontend \
65
+ --change-id launch-corps-demo \
66
+ --capture-url http://127.0.0.1:4174/ \
67
+ --reference-image refs/competitor-main.png \
68
+ --dry-run \
69
+ --json
70
+ xflow proof --track corps --change-id launch-corps-demo
71
+ ```
72
+
73
+ Proof to inspect:
74
+
75
+ - `.xflow/GOAL.md`
76
+ - `specs/changes/launch-corps-demo/visual_benchmark.json`
77
+ - `specs/changes/launch-corps-demo/corps_proof.json`
78
+ - hash-linked execution-log witnesses
79
+ - final proof review naming whether the product contract satisfies the goal
80
+
81
+ ## Why Goal Still Matters
82
+
83
+ Codex native goal is good thread memory. xflow goal is useful when it is project
84
+ memory plus workflow evidence. If a change cannot explain how it aligns with,
85
+ narrows, or intentionally diverges from `.xflow/GOAL.md`, the goal has not done
86
+ its job.
87
+
88
+ That is why `xflow demo launch` includes both yolo and corps. The value is not
89
+ the existence of a goal file; the value is that the file becomes a shared audit
90
+ input for lightweight and heavyweight delivery.
91
+
92
+ `xflow goal audit --json` is the machine-readable guard for that claim. It
93
+ fails when the project has no durable goal or when the core skill family stops
94
+ declaring `.xflow/GOAL.md` as an intake, handoff, or completion-audit input.
95
+
96
+ ## Launch Readiness Audit
97
+
98
+ ```bash
99
+ xflow launch audit --strict --json
100
+ ```
101
+
102
+ This command is intentionally stricter than `xflow demo launch`. The demo proves
103
+ the story is explainable. The launch audit says whether the story is ready to be
104
+ promoted as an industry splash. In strict mode it exits non-zero until every
105
+ launch surface is proven. It validates `docs/adoption/` before producing the
106
+ missing-surface list, so a real adoption record removes the
107
+ `real_external_adoption` gap automatically. Registry publication remains a
108
+ separate launch gate checked through `xflow package preflight --check-registry
109
+ --check-auth --json` plus `xflow launch audit --pre-publish --strict --json`
110
+ before publish, and `xflow package audit --check-registry --json` after publish.
111
+
112
+ Use `xflow launch dossier` when you need the concise public-facing one-pager:
113
+ it summarizes the quality judgment, Codex native goal comparison, yolo/corps
114
+ proof paths, release gate, and missing launch surfaces from the same audit
115
+ payload.
116
+
117
+ Use [docs/adoption/README.md](./adoption/README.md) when turning a real team or
118
+ external project trial into reviewable launch evidence, then run
119
+ `xflow adoption validate --json` before using that record in launch claims.
120
+
121
+ Use [docs/corps-operator-guide.md](./corps-operator-guide.md) when the heavy
122
+ track feels too large to start. It compresses corps into first-time commands,
123
+ proof requirements, competitor-led inputs, and common failure meanings.