Skip to content

[codex] Add local app route smoke#7

Merged
BunsDev merged 1 commit into
mainfrom
codex/app-smoke-demo
Jul 6, 2026
Merged

[codex] Add local app route smoke#7
BunsDev merged 1 commit into
mainfrom
codex/app-smoke-demo

Conversation

@BunsDev

@BunsDev BunsDev commented Jul 6, 2026

Copy link
Copy Markdown
Member

Summary

  • Add explicit COVEN_GITHUB_DEMO_MODE=1 for local app-route verification without external GitHub or coven-code calls.
  • Add scripts/demo-app-smoke.mjs and npm run smoke:app to start the built server, sign an issues.labeled delivery, load config/example-policy.json, and print delivery/task/result artifacts.
  • Run the app-route smoke in CI and document it in the README and connection guide.

Verification

  • npm test — 13/13
  • npm run build
  • npm run smoke:app
  • git diff --check

Demo evidence

npm run smoke:app returned HTTP 200 with action accepted, task state completed, trigger issue_mention, familiar cody, issue #42, publication state demo_mode_no_github_calls, and result evidence status signed_delivery_policy_route.

Signed-off-by: Val Alexander <bunsthedev@gmail.com>
Copilot AI review requested due to automatic review settings July 6, 2026 15:37
@BunsDev BunsDev merged commit 381b730 into main Jul 6, 2026
2 checks passed
@BunsDev BunsDev deleted the codex/app-smoke-demo branch July 6, 2026 15:38

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.

Pull request overview

Adds an explicit “demo mode” path to the webhook forwarder so developers (and CI) can verify the signed-delivery → policy route → task/result artifact flow locally without any external GitHub or coven-code calls.

Changes:

  • Introduces COVEN_GITHUB_DEMO_MODE config flag and a demo-mode task completion path in the adapter.
  • Adds a local smoke script (scripts/demo-app-smoke.mjs) plus npm run smoke:app and runs the smoke in CI.
  • Documents the new demo workflow in the README and connection guide.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/webhook-adapter.test.ts Adds coverage for demo mode processing a signed issues.labeled delivery and writing expected artifacts.
src/adapter.ts Adds demoMode to config and a demo-mode short-circuit that writes session brief/result artifacts and completes the task.
scripts/demo-app-smoke.mjs New local smoke script that builds config, starts the server, sends a signed delivery, and prints delivery/task/result artifacts.
README.md Documents the demo smoke script and adds npm run smoke:app to verification steps.
package.json Adds smoke:app script.
docs/coven-github-connection.md Adds “Local App Demo” section describing the smoke flow and demo mode behavior.
.github/workflows/ci.yml Runs the demo smoke script as part of CI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +2 to +10
import {createHmac} from "node:crypto";
import {mkdtempSync, readFileSync, writeFileSync} from "node:fs";
import {tmpdir} from "node:os";
import {join} from "node:path";

import {createConfig} from "../dist/src/adapter.js";
import {createWebhookServer} from "../dist/src/server.js";

const root = new URL("..", import.meta.url).pathname;
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