@hxp-tools/godplans 0.0.0-stage → 2.0.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.
Files changed (144) hide show
  1. package/CHANGELOG.md +1176 -0
  2. package/LICENSE +21 -0
  3. package/PROMPT.md +4006 -0
  4. package/README.md +201 -2
  5. package/assets/README.md +11 -0
  6. package/assets/hero.svg +44 -0
  7. package/assets/plan-loop.svg +62 -0
  8. package/assets/quest-map.svg +80 -0
  9. package/bin/godplans.js +93 -0
  10. package/docs/ARCHITECTURE.md +136 -0
  11. package/docs/RELEASING.md +107 -0
  12. package/evals/README.md +295 -0
  13. package/evals/cases/brownfield-cli/EXPECTATIONS +15 -0
  14. package/evals/cases/brownfield-cli/INPUT/package.json +9 -0
  15. package/evals/cases/brownfield-cli/INPUT/src/cli.js +4 -0
  16. package/evals/cases/brownfield-cli/INPUT/src/format.js +3 -0
  17. package/evals/cases/brownfield-cli/INPUT/test/cli.test.js +7 -0
  18. package/evals/cases/brownfield-cli/REQUEST.baseline.md +10 -0
  19. package/evals/cases/brownfield-cli/REQUEST.md +10 -0
  20. package/evals/cases/compliance-refusal/EXPECTATIONS +4 -0
  21. package/evals/cases/compliance-refusal/REQUEST.baseline.md +9 -0
  22. package/evals/cases/compliance-refusal/REQUEST.md +8 -0
  23. package/evals/cases/greenfield-saas/EXPECTATIONS +21 -0
  24. package/evals/cases/greenfield-saas/REQUEST.baseline.md +11 -0
  25. package/evals/cases/greenfield-saas/REQUEST.md +11 -0
  26. package/evals/cases/nested-pillars/EXPECTATIONS +12 -0
  27. package/evals/cases/nested-pillars/REQUEST.baseline.md +10 -0
  28. package/evals/cases/nested-pillars/REQUEST.md +11 -0
  29. package/evals/cases/observability-evidence/EXPECTATIONS +10 -0
  30. package/evals/cases/observability-evidence/REQUEST.baseline.md +10 -0
  31. package/evals/cases/observability-evidence/REQUEST.md +11 -0
  32. package/evals/cases/product-business/EXPECTATIONS +18 -0
  33. package/evals/cases/product-business/REQUEST.baseline.md +13 -0
  34. package/evals/cases/product-business/REQUEST.md +14 -0
  35. package/evals/cases/product-form-routing/EXPECTATIONS +13 -0
  36. package/evals/cases/product-form-routing/REQUEST.baseline.md +11 -0
  37. package/evals/cases/product-form-routing/REQUEST.md +11 -0
  38. package/evals/cases/prose-integrity/EXPECTATIONS +19 -0
  39. package/evals/cases/prose-integrity/REQUEST.baseline.md +19 -0
  40. package/evals/cases/prose-integrity/REQUEST.md +20 -0
  41. package/evals/cases/replan-preserves-history/EXPECTATIONS +9 -0
  42. package/evals/cases/replan-preserves-history/INPUT/.godplans/PLAN.mdx +115 -0
  43. package/evals/cases/replan-preserves-history/INPUT/package.json +5 -0
  44. package/evals/cases/replan-preserves-history/REQUEST.baseline.md +10 -0
  45. package/evals/cases/replan-preserves-history/REQUEST.md +10 -0
  46. package/evals/cases/stale-prepublication/EXPECTATIONS +10 -0
  47. package/evals/cases/stale-prepublication/REQUEST.baseline.md +12 -0
  48. package/evals/cases/stale-prepublication/REQUEST.md +13 -0
  49. package/evals/cases/stale-source-evidence/EXPECTATIONS +10 -0
  50. package/evals/cases/stale-source-evidence/INPUT/package.json +8 -0
  51. package/evals/cases/stale-source-evidence/REQUEST.baseline.md +11 -0
  52. package/evals/cases/stale-source-evidence/REQUEST.md +12 -0
  53. package/evals/cases/weekend-library/EXPECTATIONS +19 -0
  54. package/evals/cases/weekend-library/REQUEST.baseline.md +10 -0
  55. package/evals/cases/weekend-library/REQUEST.md +11 -0
  56. package/evals/cases-roster.txt +19 -0
  57. package/evals/external/GRADE.schema.json +39 -0
  58. package/evals/external/README.md +42 -0
  59. package/evals/external/RUBRIC.md +32 -0
  60. package/evals/metrics/context-cost.json +154 -0
  61. package/evals/outcomes/README.md +65 -0
  62. package/evals/outcomes/cases/tenant-notes-api/REQUEST.baseline.md +14 -0
  63. package/evals/outcomes/cases/tenant-notes-api/REQUEST.md +13 -0
  64. package/evals/outcomes/cases/tenant-notes-api/VERIFY.sh +13 -0
  65. package/evals/outcomes/results/2026-07-23-tenant-notes-api-codex/README.md +93 -0
  66. package/evals/outcomes/results/2026-07-23-tenant-notes-api-codex/treatment/plan/PLAN.json +547 -0
  67. package/evals/runners/claude-baseline.sh +4 -0
  68. package/evals/runners/claude-grade.sh +3 -0
  69. package/evals/runners/claude.sh +4 -0
  70. package/evals/runners/codex-baseline.sh +181 -0
  71. package/evals/runners/codex-builder.sh +96 -0
  72. package/evals/runners/codex-godaudits.sh +84 -0
  73. package/evals/runners/codex.sh +147 -0
  74. package/evals/runners/gemini-baseline.sh +4 -0
  75. package/evals/runners/gemini-grade.sh +3 -0
  76. package/evals/runners/gemini.sh +4 -0
  77. package/evals/runners/vendor-cli.sh +257 -0
  78. package/evals/runners/vendor-grade.sh +82 -0
  79. package/install.sh +323 -0
  80. package/package.json +92 -4
  81. package/requirements/skills-ref.txt +2 -0
  82. package/scripts/build-catalog.js +114 -0
  83. package/scripts/build-prompt.sh +257 -0
  84. package/scripts/context-metrics.js +118 -0
  85. package/scripts/eval-external.js +226 -0
  86. package/scripts/eval-matrix.sh +172 -0
  87. package/scripts/eval-outcome.js +143 -0
  88. package/scripts/eval.sh +321 -0
  89. package/scripts/lint-parity.js +331 -0
  90. package/scripts/lint.sh +743 -0
  91. package/scripts/outcome-summary.js +126 -0
  92. package/scripts/release-check.sh +108 -0
  93. package/scripts/release-prepare.js +41 -0
  94. package/scripts/summarize-eval.js +91 -0
  95. package/scripts/summarize-matrix.js +101 -0
  96. package/scripts/version-sync.js +65 -0
  97. package/skills/godplans/SKILL.md +192 -0
  98. package/skills/godplans/references/agent-memory.md +168 -0
  99. package/skills/godplans/references/architecture.md +189 -0
  100. package/skills/godplans/references/build.md +130 -0
  101. package/skills/godplans/references/business.md +252 -0
  102. package/skills/godplans/references/code-quality.md +165 -0
  103. package/skills/godplans/references/compliance.md +59 -0
  104. package/skills/godplans/references/database.md +157 -0
  105. package/skills/godplans/references/deploy.md +146 -0
  106. package/skills/godplans/references/discovery.md +297 -0
  107. package/skills/godplans/references/doc-set.md +243 -0
  108. package/skills/godplans/references/exemplar.md +228 -0
  109. package/skills/godplans/references/launch.md +162 -0
  110. package/skills/godplans/references/llm.md +132 -0
  111. package/skills/godplans/references/observe.md +178 -0
  112. package/skills/godplans/references/plan-format.md +340 -0
  113. package/skills/godplans/references/product.md +130 -0
  114. package/skills/godplans/references/repo.md +184 -0
  115. package/skills/godplans/references/roadmap.md +158 -0
  116. package/skills/godplans/references/security.md +156 -0
  117. package/skills/godplans/references/seo.md +133 -0
  118. package/skills/godplans/references/stack.md +133 -0
  119. package/skills/godplans/references/style-genome.md +198 -0
  120. package/skills/godplans/references/ui.md +153 -0
  121. package/skills/godplans/references/ux.md +150 -0
  122. package/skills/godplans/schemas/PLAN.schema.json +275 -0
  123. package/skills/godplans/schemas/PLAN.v1.schema.json +258 -0
  124. package/skills/godplans/scripts/plan-halflife.sh +76 -0
  125. package/skills/godplans/scripts/style-stats.py +630 -0
  126. package/skills/godplans/scripts/validate-plan.sh +1709 -0
  127. package/skills/godplans/templates/PLAN.template.mdx +269 -0
  128. package/tests/agent-memory-guidance.sh +32 -0
  129. package/tests/build-catalog.sh +81 -0
  130. package/tests/codex-runner.sh +139 -0
  131. package/tests/eval-harness.sh +377 -0
  132. package/tests/evidence-harnesses.sh +243 -0
  133. package/tests/fixtures/plan-json-v1-1.13.0.json +472 -0
  134. package/tests/install-regression.sh +246 -0
  135. package/tests/lib/plan-schema-check.js +163 -0
  136. package/tests/lint-selftest.sh +582 -0
  137. package/tests/package-contents.sh +140 -0
  138. package/tests/portable-prompt.test.sh +261 -0
  139. package/tests/release-tooling.sh +204 -0
  140. package/tests/run.sh +14 -0
  141. package/tests/script-usage.sh +37 -0
  142. package/tests/style-stats.sh +170 -0
  143. package/tests/validate-plan.sh +1970 -0
  144. package/tests/vendor-runner.sh +291 -0
@@ -0,0 +1,42 @@
1
+ # External grading
2
+
3
+ This evaluation breaks the sibling-rubric loop. Judges receive one neutral
4
+ brief, two plans under arm labels A and B, and `RUBRIC.md`. Plan content is
5
+ passed verbatim, so a godplans plan still carries its own format (frontmatter,
6
+ task and requirement ids, `.godplans/` paths); `RUBRIC.md` tells judges not to
7
+ reward a tool name or file format. The criteria contain no godplans
8
+ requirement ids and do not descend from its domain modules.
9
+
10
+ Run at least five plan pairs through at least two judges from outside the
11
+ planning model family:
12
+
13
+ ```bash
14
+ node scripts/eval-external.js \
15
+ --matrix evals/results/RUN \
16
+ --source-profile codex \
17
+ --judge claude=evals/runners/claude-grade.sh \
18
+ --judge gemini=evals/runners/gemini-grade.sh \
19
+ --output evals/external/results/RUN
20
+ ```
21
+
22
+ The runner receives a packet path (`packets/<case>.md`, which carries the
23
+ rubric and the `GRADE.schema.json` shape) and an output grade path
24
+ (`grades/<judge>/<case>.json`). It must disable godplans and sibling skills
25
+ for the judging turn. A judge label must be unique, ignoring case, and one
26
+ path segment (letters, digits, `.`, `_`, `-`), and the runner path may be
27
+ relative or absolute. The included adapters use their host CLI's existing
28
+ authentication and record the available customization-isolation mode.
29
+ `GODPLANS_GRADE_CLAUDE_MODEL` (default `sonnet`) and
30
+ `GODPLANS_GRADE_GEMINI_MODEL` (default `gemini-2.5-pro`) choose the judge
31
+ models, and each grade's `<case>.RUNNER.txt` records the model used. The
32
+ coordinator validates totals, unblinds only after every grade exists, and
33
+ publishes treatment and control means, preference counts, raw grades, and mean
34
+ absolute inter-rater score gap.
35
+
36
+ No provider credential is required by this repository. Maintainers may replace
37
+ the included adapters with any host runner that satisfies the two-argument
38
+ contract.
39
+
40
+ Five pairs and two raters are minimum evidence, not a statistical guarantee.
41
+ Publish the packets, blinding map, raw JSON grades, runner metadata, and summary
42
+ together.
@@ -0,0 +1,32 @@
1
+ # Blind external plan rubric
2
+
3
+ Judge only what the project brief and the two plans say. Do not reward a tool
4
+ name, file format, requirement-id convention, length, or professional tone.
5
+ Score each criterion from 1 to 5 using the anchors below.
6
+
7
+ ## Criteria
8
+
9
+ 1. Decision completeness: the plan settles the choices that would be expensive
10
+ to reverse for this specific brief, and separates settled choices from
11
+ assumptions.
12
+ 2. Falsifiability: major choices name observable evidence that could prove them
13
+ wrong, plus a concrete response when that evidence appears.
14
+ 3. Execution actionability: a fresh implementation agent can identify the next
15
+ unit of work, its dependencies, completion evidence, and verification.
16
+ 4. Risk targeting: the plan addresses the brief's most consequential failure
17
+ modes without relying on generic security, quality, or operations language.
18
+ 5. Proportionality: depth matches the stated scale and capacity. Low-reversal
19
+ work is deferred or compressed when planning it now would add little value.
20
+ 6. Internal consistency: decisions, requirements, sequencing, and verification
21
+ agree with each other, with no conflicting lifecycle or scope claims.
22
+
23
+ ## Anchors
24
+
25
+ - 1: materially absent or unusable.
26
+ - 2: present in fragments, with major gaps.
27
+ - 3: adequate but requires implementation-time interpretation.
28
+ - 4: specific and usable, with only minor gaps.
29
+ - 5: independently executable and easy to disprove when wrong.
30
+
31
+ Return the required JSON only. Give each plan an independent score before
32
+ choosing a preference. A tie is valid.
@@ -0,0 +1,154 @@
1
+ {
2
+ "format": "godplans/context-cost@1",
3
+ "estimate": {
4
+ "method": "ceil(raw_utf8_bytes / 4)",
5
+ "limitation": "Provider tokenizers differ. Published model runs record actual input and output token usage in RUNNER.txt and METRICS.json."
6
+ },
7
+ "portable_core": {
8
+ "bytes": 347461,
9
+ "estimated_tokens": 86866,
10
+ "sha256": "3f1241371861ebc73adf126fc73b3178332ad167abb35a78bcf0365da14dc9f1"
11
+ },
12
+ "portable_full_generated": {
13
+ "bytes": 755946,
14
+ "estimated_tokens": 188987,
15
+ "sha256": "433f7b5ecfd02bb5393ce865b95555f4f70f595d2c7a6f84e8fffa5e66fe4f42"
16
+ },
17
+ "native_skill_entry": {
18
+ "bytes": 28130,
19
+ "estimated_tokens": 7033,
20
+ "sha256": "fa312a63d1f1f6d99463cf9f4603cd45589225f4909bc2831ec2bd1b1b21f881"
21
+ },
22
+ "core_modules": {
23
+ "compliance": {
24
+ "bytes": 7070,
25
+ "estimated_tokens": 1768,
26
+ "sha256": "d795b29189693e0fd92f97c6a184228ab8374f172d32c6fcea33c57f4aaaad13"
27
+ },
28
+ "discovery": {
29
+ "bytes": 32375,
30
+ "estimated_tokens": 8094,
31
+ "sha256": "dae8499e29994063706d669adfa3b44a709f65ab552a11495dbf62ab1ee0833d"
32
+ },
33
+ "product": {
34
+ "bytes": 21354,
35
+ "estimated_tokens": 5339,
36
+ "sha256": "b294a942586b772a087fec7bc6b20ca6901b5a6f41eff10fc04752a9055493ec"
37
+ },
38
+ "architecture": {
39
+ "bytes": 31900,
40
+ "estimated_tokens": 7975,
41
+ "sha256": "dcac27da43cb0580299183dfd49e2ece1006a4e5c8e3b388057730d8168ba673"
42
+ },
43
+ "stack": {
44
+ "bytes": 24376,
45
+ "estimated_tokens": 6094,
46
+ "sha256": "aa6ce22ab038c1c9aa8b0c7c8f3489757107ce5697937f3938140f6029c8ed8f"
47
+ },
48
+ "database": {
49
+ "bytes": 27452,
50
+ "estimated_tokens": 6863,
51
+ "sha256": "61f0a5f116adb1f69ab9ec49f3bfcc9c06f09a582531f3f32df382789013cbea"
52
+ },
53
+ "security": {
54
+ "bytes": 34074,
55
+ "estimated_tokens": 8519,
56
+ "sha256": "455cea93444e16d1941442af6170a4de697190fc2d5b281ce1901aa93804ccad"
57
+ },
58
+ "exemplar": {
59
+ "bytes": 12283,
60
+ "estimated_tokens": 3071,
61
+ "sha256": "4e3964df3cccd4c091b9612c23fae58827b1674032d6fccd4e20a264bca58491"
62
+ },
63
+ "plan-format": {
64
+ "bytes": 39906,
65
+ "estimated_tokens": 9977,
66
+ "sha256": "7fac69ae5d283640aee303b99810998bfeca206473925c75064f74e05b9e1a52"
67
+ }
68
+ },
69
+ "core_modules_total": {
70
+ "bytes": 230790,
71
+ "estimated_tokens": 57700
72
+ },
73
+ "lazy_modules": {
74
+ "doc-set": {
75
+ "bytes": 20254,
76
+ "estimated_tokens": 5064,
77
+ "sha256": "a97fa15ef910bc2c561e04665cdb07a4906221f553ba2e97a2939372c1d374cf"
78
+ },
79
+ "business": {
80
+ "bytes": 61514,
81
+ "estimated_tokens": 15379,
82
+ "sha256": "e478b08af23f243d5f303c5b88405da74b5dfdf2320b0ed92a6091701c86a7cb"
83
+ },
84
+ "llm": {
85
+ "bytes": 27855,
86
+ "estimated_tokens": 6964,
87
+ "sha256": "2fa1e279b59ee687f2aebce89ef46efbd8e2009356f0f32cdfadaf60619ad56e"
88
+ },
89
+ "ux": {
90
+ "bytes": 22291,
91
+ "estimated_tokens": 5573,
92
+ "sha256": "6928003de02e46f3b70d1d7c6d0982705bb8d8f7d3ed53f3d5f84c03b95441fa"
93
+ },
94
+ "ui": {
95
+ "bytes": 25173,
96
+ "estimated_tokens": 6294,
97
+ "sha256": "b3390fe6e3d94ce6958e93cc340bafe9e4bae937ed0ef1e3ecdade8f55f21b5d"
98
+ },
99
+ "seo": {
100
+ "bytes": 25259,
101
+ "estimated_tokens": 6315,
102
+ "sha256": "e0d46cedcb585bc4d00eb59caddbb0e2a562e2d650f4f14f025eacff48383f21"
103
+ },
104
+ "code-quality": {
105
+ "bytes": 25057,
106
+ "estimated_tokens": 6265,
107
+ "sha256": "e76f4aae79f11818393c55f6cf83be189b82a97483ce71970aa951c57955d311"
108
+ },
109
+ "style-genome": {
110
+ "bytes": 27567,
111
+ "estimated_tokens": 6892,
112
+ "sha256": "bebf194dd18e033e5ccc55b7b9ca460231555a268164a95e34fae1ae44f1f703"
113
+ },
114
+ "agent-memory": {
115
+ "bytes": 26984,
116
+ "estimated_tokens": 6746,
117
+ "sha256": "78e7fd7002c9e5ea7e55e4dca625a01339cedd893a5b8c714d45bde40625d6a8"
118
+ },
119
+ "repo": {
120
+ "bytes": 30902,
121
+ "estimated_tokens": 7726,
122
+ "sha256": "7ea17d20135373106451158e61acd74a2ed5de2e5adcd1c9e0941a98bce18c23"
123
+ },
124
+ "build": {
125
+ "bytes": 21173,
126
+ "estimated_tokens": 5294,
127
+ "sha256": "0ce523561c456ed62791d5da7b9b514e25b4e9bfdfa0a7139c3cadb4878894af"
128
+ },
129
+ "roadmap": {
130
+ "bytes": 23904,
131
+ "estimated_tokens": 5976,
132
+ "sha256": "07ec0118b21ca6185e6c73a40f97ea7af6c90d5073a0f306ce97163c40e4e3a7"
133
+ },
134
+ "deploy": {
135
+ "bytes": 19708,
136
+ "estimated_tokens": 4927,
137
+ "sha256": "518bda6d1edeee5d6d7e7a102d3410fd85ff18ccf9597368cc804748fe45bde7"
138
+ },
139
+ "observe": {
140
+ "bytes": 25195,
141
+ "estimated_tokens": 6299,
142
+ "sha256": "01e600c05a10e40126f690ff914decc72a233e79e9dd6fb4a945e2eb78bc5fc2"
143
+ },
144
+ "launch": {
145
+ "bytes": 25219,
146
+ "estimated_tokens": 6305,
147
+ "sha256": "0c0e58f10185d8ee7d56ff39472d9466820a9238b00cd4ba6038ee7f96d0db9e"
148
+ }
149
+ },
150
+ "lazy_modules_total": {
151
+ "bytes": 408055,
152
+ "estimated_tokens": 102019
153
+ }
154
+ }
@@ -0,0 +1,65 @@
1
+ # Build-outcome evaluation
2
+
3
+ The behavioral matrix asks whether a plan has the intended structure. This
4
+ evaluation tests the product thesis: does building from a godplans plan leave
5
+ fewer expensive findings than building from a neutral control plan?
6
+
7
+ For each case the coordinator:
8
+
9
+ 1. Generates a treatment plan and a no-skill control plan from matched briefs.
10
+ 2. Gives each plan to the same fresh, no-skill builder model in an empty copy of
11
+ the same fixture.
12
+ 3. Runs the case verifier.
13
+ 4. Runs the same fresh static godaudits pass against each built repository,
14
+ with the input plan removed and arm names hidden from the auditor.
15
+ 5. Compares active (open or accepted-risk) Critical and High findings,
16
+ verifier status, and plan and build token cost, and refuses the comparison
17
+ when the two audits report different godaudits engine or pack versions.
18
+
19
+ Example:
20
+
21
+ ```bash
22
+ GODAUDITS_SKILL_DIR=/absolute/path/to/godaudits/skills/godaudits \
23
+ node scripts/eval-outcome.js \
24
+ --case tenant-notes-api \
25
+ --plan-runner evals/runners/codex.sh \
26
+ --control-plan-runner evals/runners/codex-baseline.sh \
27
+ --build-runner evals/runners/codex-builder.sh \
28
+ --audit-runner evals/runners/codex-godaudits.sh \
29
+ --output evals/outcomes/results/RUN
30
+ ```
31
+
32
+ `GODPLANS_OUTCOME_BUILD_MODEL` and `GODPLANS_OUTCOME_BUILD_EFFORT` set the
33
+ builder's model and reasoning effort, and `GODPLANS_OUTCOME_AUDIT_MODEL` and
34
+ `GODPLANS_OUTCOME_AUDIT_EFFORT` set the auditor's. The model defaults to the
35
+ Codex configured default and the effort to `high`. `GODAUDITS_SKILL_DIR`
36
+ defaults to a sibling `../godaudits/skills/godaudits` checkout when one exists.
37
+
38
+ The output retains both plans, built repositories, verifier logs, complete
39
+ AUDIT.json and AUDIT.mdx artifacts, runner metadata, and generated
40
+ `SUMMARY.json` plus `SUMMARY.md`. The summary includes plan and build token
41
+ usage when the runners expose it. Regenerate an existing summary after runner
42
+ metadata changes with:
43
+
44
+ ```bash
45
+ node scripts/outcome-summary.js --output evals/outcomes/results/RUN
46
+ ```
47
+
48
+ A lower Critical or High count is evidence for the rewrite-prevention claim. A
49
+ tie or a loss must be published with equal prominence.
50
+
51
+ One case is directional evidence. Repeat across builders and product forms
52
+ before making a broad claim.
53
+
54
+ ## Published directional result
55
+
56
+ The 2026-07-23 `tenant-notes-api` run measured the godplans 1.9.0 release
57
+ candidate with `gpt-5.6-sol` through an already authenticated Codex CLI. Both
58
+ arms passed the case verifier. Treatment had 0 Critical and 1 High finding;
59
+ control had 1 Critical and 4 High findings, for a -4 Critical plus High delta.
60
+ Treatment planning reported 11,236,025 cumulative input plus output tokens
61
+ versus 162,816 for control. No later godplans version has been re-measured, so
62
+ these numbers describe 1.9.0, not the current skill.
63
+
64
+ Read the method, cost, limits, and raw artifacts under
65
+ `results/2026-07-23-tenant-notes-api-codex/`.
@@ -0,0 +1,14 @@
1
+ Write a thorough but proportional implementation plan for a small multi-tenant
2
+ notes API that one agent can build in six hours. It runs on Node.js 22 with no
3
+ paid services and must stay runnable offline. Write the plan to PLAN.md.
4
+
5
+ Two organizations each have two users. An authenticated user can create, list,
6
+ read, update, and delete notes only inside their own organization. Every note
7
+ has an opaque public id, title, body, owner id, organization id, created time,
8
+ and updated time. The API needs one machine-readable contract, one error
9
+ envelope, request validation, deterministic tests, and a restart-safe local
10
+ data store. Include the exact checks that prove a user from organization A
11
+ cannot read or mutate organization B's notes, even when the note id is known.
12
+
13
+ Keep the plan proportional to the six-hour cap. Do not plan a UI, SEO, public
14
+ launch, cloud deployment, billing, or enterprise compliance program.
@@ -0,0 +1,13 @@
1
+ Plan a small multi-tenant notes API for a six-hour implementation evaluation.
2
+ It runs on Node.js 22 with no paid services and must stay runnable offline.
3
+
4
+ Two organizations each have two users. An authenticated user can create, list,
5
+ read, update, and delete notes only inside their own organization. Every note
6
+ has an opaque public id, title, body, owner id, organization id, created time,
7
+ and updated time. The API needs one machine-readable contract, one error
8
+ envelope, request validation, deterministic tests, and a restart-safe local
9
+ data store. Include the exact checks that prove a user from organization A
10
+ cannot read or mutate organization B's notes, even when the note id is known.
11
+
12
+ Keep the plan proportional to the six-hour cap. Do not plan a UI, SEO, public
13
+ launch, cloud deployment, billing, or enterprise compliance program.
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env bash
2
+
3
+ set -eu
4
+
5
+ [ "$#" -eq 1 ] || { echo "usage: VERIFY.sh BUILT_REPOSITORY" >&2; exit 2; }
6
+ REPOSITORY=$1
7
+
8
+ test -f "$REPOSITORY/package.json"
9
+ (
10
+ cd "$REPOSITORY"
11
+ npm test
12
+ npm run lint --if-present
13
+ )
@@ -0,0 +1,93 @@
1
+ # Published build-outcome result
2
+
3
+ This is one directional build-outcome evaluation of the godplans 1.9.0 release
4
+ candidate. It tests the central claim against a strong no-skill control: does
5
+ building from a godplans plan leave fewer expensive audit findings?
6
+
7
+ ## Environment
8
+
9
+ | Field | Value |
10
+ |---|---|
11
+ | Date | 2026-07-23 |
12
+ | Case | `tenant-notes-api` |
13
+ | Planning, building, and audit model | `gpt-5.6-sol` |
14
+ | Codex CLI | 0.145.0 |
15
+ | godaudits | 2.12.0 |
16
+ | Audit capability | static |
17
+ | Audit arm identity | hidden |
18
+
19
+ The runners used their normal authenticated host CLI. No provider credential
20
+ was required by godplans or the coordinator. The configured default model was
21
+ resolved from the run host and recorded in every `RUNNER.txt`.
22
+
23
+ ## Method
24
+
25
+ The treatment planner loaded the project-local godplans skill. The control
26
+ planner ran in an isolated home with no skills and received a neutral,
27
+ de-branded request. Both plans went to the same fresh no-skill builder with the
28
+ same model family and reasoning setting. The case verifier then ran against
29
+ both repositories.
30
+
31
+ For audit, each built repository was copied into a fresh anonymous workspace.
32
+ The plan and arm label were absent. The same fresh godaudits 2.12.0 static pass
33
+ audited each artifact. The final comparison uses open Critical and High
34
+ findings from the validated audit state.
35
+
36
+ ## Result
37
+
38
+ | Arm | Verify | Critical | High | Critical plus High | All active |
39
+ |---|---|---:|---:|---:|---:|
40
+ | godplans treatment | pass | 0 | 1 | 1 | 9 |
41
+ | no-skill control | pass | 1 | 4 | 5 | 15 |
42
+
43
+ The treatment delta is -4 Critical plus High findings. Both artifacts passed
44
+ their implementation verifier, so the result does not come from a broken or
45
+ incomplete control build.
46
+
47
+ The control's Critical finding was a missing storage-enforced tenant boundary.
48
+ Its four High findings covered token rotation and revocation, unredacted
49
+ exception logging, repository and CI provenance, and missing agent memory for
50
+ the API, auth, and data boundaries. The treatment's only High finding was
51
+ missing version-control and CI provenance. Both evaluated copies lacked Git
52
+ history, and neither build emitted CI, so this remains a shared limitation of
53
+ the artifacts and setup.
54
+
55
+ The treatment audit scored 93/100 with an `audit-proof` verdict. The control
56
+ scored 79/100 with a `needs work` verdict. Those scores are secondary. The
57
+ predeclared primary outcome is the Critical plus High count.
58
+
59
+ ## Cost
60
+
61
+ | Arm | Stage | Input | Cached input | Output | Input plus output |
62
+ |---|---|---:|---:|---:|---:|
63
+ | treatment | plan | 11,186,539 | 10,933,248 | 49,486 | 11,236,025 |
64
+ | treatment | build | 2,189,967 | 2,082,560 | 35,232 | 2,225,199 |
65
+ | control | plan | 152,557 | 114,432 | 10,259 | 162,816 |
66
+ | control | build | 691,970 | 630,272 | 25,218 | 717,188 |
67
+
68
+ The cumulative CLI-reported plan cost was 69.01 times the control, and the
69
+ combined plan plus build cost was 15.30 times the control. Most treatment input
70
+ was cached, but the absolute cost is still the clearest remaining weakness.
71
+ This result supports the risk-reduction claim for this case while also making
72
+ the context-cost tradeoff impossible to hide.
73
+
74
+ ## Interpretation and limits
75
+
76
+ This run is direct evidence for one security-sensitive API case and one model
77
+ family. It is not evidence that every project, model, or builder will improve.
78
+ The audit is a blinded static model judgment, not a runtime security
79
+ certification. Agent outputs are stochastic, and a repeat run may differ.
80
+
81
+ The full ten-case, three-family matrix and the blind external n=5 grading
82
+ anchor remain publication requirements for broad claims. Until those runs
83
+ exist, the defensible statement is narrow: in this matched case, the godplans
84
+ arm passed the same verifier and had four fewer open Critical plus High
85
+ findings than the no-skill control.
86
+
87
+ ## Raw artifacts
88
+
89
+ - `SUMMARY.json` and `SUMMARY.md`: generated comparison and token totals.
90
+ - `treatment/` and `control/`: plans, built repositories, verifier logs,
91
+ complete audits, runner metadata, and CLI event logs.
92
+ - `treatment/audit/AUDIT.json` and `control/audit/AUDIT.json`: canonical audit
93
+ states used for the primary outcome.