Skip to content

C5: Rewrite guidance suite and repo content to v2 (Effect-first) - #37

Merged
diegohb merged 17 commits into
mainfrom
v2/issue-28-rewrite-guidance
Oct 6, 2026
Merged

diegohb merged 17 commits into
mainfrom
v2/issue-28-rewrite-guidance

Conversation

@diegohb

@diegohb diegohb commented Oct 6, 2026

Copy link
Copy Markdown
Member

Summary

Closes #28. Rewrites the guidance suite and repo content in place to v2 facts (Effect-first), every changed fact traced to the verified-facts record (docs/reference/opencode-v2-facts.md).

  • References/oneshots/checklist — all ten guidance files rewritten to v2: Effect-first plugin definitions (@opencode/plugin/effect, { id, effect }), the plural plugins registration key, permissions ruleset arrays, JSON-Schema tool arguments, v2 MCP shapes (snake_case oauth, disabled, split timeouts), v2 agent frontmatter mapping, and the hook-family migration map. The conformance checklist inverts D8 (the plugins plural key is now conformant) and adds F1–F4: Effect plugin definition, permissions array, JSON-Schema tool arguments, mandatory exports["./server"] (facts §13.9/§14.6). Cache paths updated to the v2 npm generation cache. General Effect-TS teaching defers to the repo's effect-ts skill; v1 names appear only in explicit v1→v2 migration mappings — no v1 archive.
  • Repo content — ADR-0012 (v2-native, drop v1 hosts); superseding notes on ADR-0010/0011; glossary additions and renames (plugin registration key, plugin definition shape, tool registration); README, new CONTRIBUTING.md, and AGENTS.md consistent with v2.
  • Docs-fact gate (testing seam 5) — new tests/docs-fact-gate.ts + tests/docs-fact-gate.test.ts: fails on known-false v1 claims re-entering guidance or repo content and on API-teaching references lacking a verified-facts citation. Facts record §13 gains row 10 (legacy singular plugin tolerance adjudicated as suite-level behavior, per §15's extend-§13 rule).

Verification

Out of scope (per spec #23): templates (C6) and agent definitions (C7) untouched.

Review: two-axis pass (standards + spec) done during development; all hard findings fixed.

diegohb added 17 commits October 6, 2026 16:02
…ools, Effect-first definition, exports["./server"] (issue #28)
…nitions, plugins key, hook-family map, generation cache (issue #28)
…ts §5, ruleset permissions, no config.json (issue #28)
…g, ruleset permissions, hex-only color (issue #28)
…model selection, programmatic registration (issue #28)
…ools, JSON-Schema arguments, action table (issue #28)
…uth, disabled flag, split timeouts, codemode (issue #28)
…ts, ruleset permissions, plugin-registered tools (issue #28)
… conformant, new F items (Effect definition, permissions array, JSON-Schema args, entrypoint) (issue #28)
…olerance, request.body mapping, self-contained tool snippet, schema-URL hedge (issue #28)
@diegohb
diegohb merged commit 733519e into main Oct 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

C5: Rewrite guidance suite and repo content to v2 (Effect-first)

1 participant