Repository navigation
Add OpenCode native questionnaire adapter - #9
Merged
Merged
Conversation
Contributor
Author
|
Fixed the OpenCode 1.18.25 runtime-interface mismatch in The adapter and generated skill now distinguish the two real layers:
The model-facing normalizer consumes the actual formatted envelope in submitted-question order, preserves comma-joined multiple selections and custom text as surfaced, and rejects Verification after the fix:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3.
Outcome
questionadapter over the canonical immutable frontier contractstring[][]response shape,multiple, custom answers, and final confirmationopencode runare diagnostic onlygrill-me/grillingOpenCode bundle with deterministic bytes and retained upstream MIT notice.opencode/skillsrootVerification
PYTHONDONTWRITEBYTECODE=1 python3 -m unittest tests.test_opencode_adapter tests.test_opencode_generation -v— 16 passedpython3 /home/god/.codex/skills/.system/skill-creator/scripts/quick_validate.py harnesses/opencode/skills/grill-me— validpython3 /home/god/.codex/skills/.system/skill-creator/scripts/quick_validate.py harnesses/opencode/skills/grilling— valid./scripts/verify-outcome.sh— 38 passed; outcome verified1.18.25; tagged source confirms ordered questions, optionalmultiple, default custom UI, and positional answer arraysNo install or deploy was performed.
Note
Medium Risk
New external OpenCode
questioncontract and positional answer parsing affect interview correctness; delimiter-rejection logic is security-relevant for answer integrity, but scope is dev-workflow tooling rather than production auth or data stores.Overview
Adds an OpenCode harness on top of the shared grilling frontier contract: one ordered native
questioncall per snapshot, strict parsing of the model-facing answer string (not private metadata), delimiter checks so custom text cannot remap decisions, plus capability probing from observed tool exposure/permission/transport (with optionalopencode --versionfor diagnostics only).Also adds a deterministic skill bundle (
grill-me→grilling) underharnesses/opencode/, sourced fromdev_workflow/generated_opencode.pyand kept in sync viascripts/generate_opencode_skills.py(--checkfor CI), including upstream MIT notice andbundle.jsonmanifest.Tests cover adapter serialization, multi-select, confirmation gating, malformed answers, fallback rendering, generation byte-stability, skill validation, and (when OpenCode 1.18.25 is present) isolated
.opencode/skillsdiscovery viaopencode debug skill --pure.Reviewed by Cursor Bugbot for commit 8f68355. Bugbot is set up for automated code reviews on this repo. Configure here.
Greptile Summary
The OpenCode questionnaire adapter and generated skill bundle are ready to merge. The previously reported response-boundary remapping behavior was exercised with both next-question and final-terminator collisions; both inputs were rejected before answers could be associated with a different decision. The committed bundle is current and its generated skill metadata validates successfully.
Confidence Score: 5/5
No blocking failure remains.
The exercised response parsing path rejects structural delimiter collisions without remapping answers, and no accepted P0 or P1 finding remains.
What T-Rex did
Reviews (4): Last reviewed commit: "test: isolate OpenCode project discovery..." | Re-trigger Greptile