Skip to content

E2: add read-only planning provider and safe response contract - #32

Merged
mchwang merged 11 commits into
mainfrom
codex/lane-e2-provider
Sep 24, 2026
Merged

mchwang merged 11 commits into
mainfrom
codex/lane-e2-provider

Conversation

@mchwang

@mchwang mchwang commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Adds bounded, single-pass prompt construction for drafting and independent typed suggestion cards. All source text stays escaped JSON; provider payloads include only explicit issue and stable identity fields. Replies must match captured issue/revision and every card must yield a valid plan.

Depends on merged E1 #30; ownership #29. Contract: docs/implementation/planning-provider.md. No CLI, shared store or UI changes. D5 supplies production invocation.

Validated head: fac848a, based on main 0d46518. Five targeted suites: 132 tests passed; typecheck passed after merging current main and before push. Fresh CI and review are pending. Earlier heads are intermediate checkpoints.

Review rounds: 1 fixed issue-data field narrowing and reproduced/fixed initial revision validation; 2 returned no inline findings with generic summary text reconciled in #29; 3 fixed extra identity properties and added a direct cyclic-input regression; 4 returned no findings and recommended approval. All threads resolved. The current head only merges reviewed E1/main history to remove stacked diff noise; self-review confirms the PR diff remains the four E2 files with no new implementation changes. No findings declined.

Review-lesson audit: issue-field narrowing is covered by prompts/plan-author.md four-field contract. Stable identity narrowing is a one-off implementation fix with regression coverage. Initial revision is a Store createPlan precondition. Cyclic input is covered by bounded traversal and regression. No duplicate AGENTS rule introduced. Live adapter and UI acceptance remain D/F/G work.

Copilot AI lite review requested due to automatic review settings September 24, 2026 08:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Two moderate issues remain regarding input field narrowing and initial revision validation.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Adds a bounded, read-only planning authoring boundary with escaped prompts, revision validation, and typed draft/suggestion responses.

Changes:

  • Adds immutable request preparation and response validation.
  • Updates draft and suggestion prompt instructions.
  • Documents provider contracts and integration limitations.
  • Adds focused contract and safety tests.
File Summary
test/​planning-author.test.ts Tests authoring contracts, escaping, bounds, and validation.
prompts/​plan-author.md Defines draft and suggestion output instructions.
docs/​implementation/​planning-provider.md Documents provider contracts and integration boundaries.
core/​planning-author.ts Implements request construction and response validation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread core/planning-author.ts

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Two moderate boundary-validation issues remain in core/planning-author.ts.

Review effort: Lite
Findings: None

Resolved since last review (1)

Copilot AI review requested due to automatic review settings September 24, 2026 09:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Two moderate issues remain in identity-field isolation and cyclic-input rejection.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Medium severity

Open (1)

Comment thread core/planning-author.ts
Copilot AI review requested due to automatic review settings September 24, 2026 09:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved blocking issues remain, and all reviewers assessed it as ready.

Review effort: Lite
Findings: None

Resolved since last review (1)

@mchwang
mchwang changed the base branch from codex/lane-e1-audit to main September 24, 2026 15:11
@mchwang
mchwang requested a lite review from Copilot September 24, 2026 15:12
@mchwang
mchwang merged commit 0ae71a5 into main Sep 24, 2026
3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved review issues remain.

Review effort: Lite
Findings: None

@mchwang
mchwang deleted the codex/lane-e2-provider branch September 24, 2026 15:16
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.

2 participants