Reconstructs the decision that seeded a failure, scores the paths that were evidenced at the time, and recommends the cheapest evidenced way back to the team's goal — every claim carrying an ARI.
Built for Codegeist 2026 on Forge + Teamwork Graph.
📋 docs/PROJECT_PLAN.md — scope, tasks, milestones, definition of done ✅ docs/DO_THIS.md — step-by-step for the five things only the account owner can do 🏗 docs/ARCHITECTURE.md — how the six parts fit together 🔍 docs/JIRA_MOUNT_DIAGNOSIS.md — why Jira panels are hidden by default Track: Apps for Software Teams. Entered for Best Agents, Best app with Atlassian MCP, Best apps with Teamwork Graph integration, and Best Marketplace published app.
The failure wasn't a bad decision. It was an unconnected graph.
npm install
npm --prefix static/panel install
npm run serve:webOpen http://127.0.0.1:4173, then press Run Cascade.
Or generate a static, self-contained report of two runs against the same evidence:
npm run render:report # writes demo/report.htmlBoth paths run the real engine — the same pipeline the Forge app runs. Only the host differs.
Teamwork Graph has no Decision object. Cascade synthesises decision nodes from four evidence classes — documented, threaded, transitional and implicit — then scores each recorded alternative on two axes:
| Meaning | Computed from | |
|---|---|---|
W_k knowability |
what the team could reasonably have known at the time | only evidence created on or before the decision date |
W_v viability |
what proved to work, judging by everything since | implementation proof (builds, deployments, PRs) and outcomes |
gap = W_v − W_k. A high gap means the organisation had the evidence and never connected it. That is the product.
The same evidence, scored against two different intents, produces two different recommendations — which is why the output is not hindsight bias. The pipeline test asserts this.
| Area | State | Verified by |
|---|---|---|
| Domain model, time gate, scoring, intent policy, graft assembly | done | 73 unit tests |
| Graph layer: persisted-Cypher catalog, paged client, decision synthesis | done | unit tests for synthesis + pagination |
| Storage: DDL, statements, hydration, repository | done | typecheck + mapper tests |
| Pipeline: traverse → synthesise → score → rank → persist | done | 8 end-to-end tests on a seeded graph |
| Two-intent flip | done | pipeline test |
| Resolver + async consumer + action | done | typecheck; deployed |
| Custom UI panel | done | vite build; served standalone |
| Decision artifact: parser, 5 test kinds, derived status | done | 20 tests |
| Runner CLI + fs/http/graph executors + commit statuses | done | 19 + 8 tests |
| Case base: retrieval, Laplace patterns, growth curve | done | 20 tests |
| Ledger: portable SQL schema, sqlite sandbox driver | done | 11 tests |
| Confluence mirror + storage-format round trip + ingest | done | 15 tests |
Attribution: decision/<id> → build → work item → PR |
done | 8 tests |
| Seeder: plan + idempotent executor | done | 8 tests |
MCP: reconstruct-decision, get-run, health |
verified end to end | real call ran the pipeline, wrote Forge SQL, get-run read it back |
| Deployed Forge app | live | v2.1.0 production, Runs-on-Atlassian eligible |
| In-Jira panel rendering | not yet confirmed | never observed mounting; MCP proves the app runs, so this is a surface gap not a runtime gap |
| Teamwork Graph reads | verified | JiraIssue by ARI, space edge, pages, page comments with bodies — 6 queries executed, 3 edges rejected (see docs/GRAPH-BOUNDARY.md) |
| Confluence dossier writer | hook only | writeDossier dep exists, no implementation |
| Bitbucket build-status trigger | not implemented | needs a Bitbucket app (workspace scope) |
| Query registration | not wired | no forge invoke in CLI 15; needs a webtrigger or admin page |
forge login # needs an API token scoped to Forge
forge register Cascade # creates the app id and Developer Space
forge deploy -e production
forge install --demo-site -p Jira -e production --confirm-scopes
forge install --demo-site -p Confluence -e production --confirm-scopes
forge variables set -e production CASCADE_DEMO_MODE true
forge variables set -e production CASCADE_INLINE true
forge deploy -e productionSurfaces: jira:issueContext (right-hand column, renders automatically) and jira:issuePanel (behind ••• → Apps).
An app that carries a licence, or has been submitted for listing, cannot be shared by installation link — and Codegeist requires an install link for judges. So the codebase ships with a switcher:
node scripts/set-app.mjs demo <appId> # unlicensed, shareable
node scripts/set-app.mjs mkt <appId> # licensed, submitted for listingpanel ──invoke/fetch──▶ startCascade ──▶ pipeline ──▶ SQL
│
Teamwork Graph (read-only, persisted Cypher)
- Read-only by design. The Teamwork Graph API has no write path, so the dossier is a Confluence page (ingested afterwards), not a graph mutation.
- No model in the scoring path.
src/domain/**may not import@forge/llm. The model is confined to intent parsing, and even there every hard constraint must be literally grounded in the user's text or it is dropped. - One panel, two hosts.
static/panel/src/api.tsselects the Forge bridge or plain HTTP; everything above it is host-agnostic.
| Path | Responsibility |
|---|---|
src/domain/ |
time gate, scoring, intent policy, graft — pure, no I/O |
src/graph/queries.ts |
persisted Cypher catalog + scope table |
src/graph/client.ts |
cursor paging, error classification, GraphQL envelopes |
src/graph/extract.ts |
decision synthesis rules, spine/branch assembly |
src/pipeline/run.ts |
orchestration with injected dependencies |
src/storage/ |
DDL, persistence, hydration, repository |
static/panel/ |
React panel (Vite), builds for Forge and standalone |
scripts/serve.ts |
standalone HTTP host |
scripts/render.ts |
offline HTML report |
skills/decision-autopsy/ |
SKILL.md + scoring rubric |
docs/ |
platform analysis + technical blueprint |
npm test # 73 tests
npm run typecheckThe ones that matter:
timeGate.test.ts— the hindsight-bias defence, including clock skew and unparseable timestamps.scoring.test.ts— independence discounting, withheld evidence scoring zero knowability, arithmetic completeness.graft.test.ts— vetoes,noEvidencedPath, graft lanes.pipeline.test.ts— seeded graph end to end, including the same evidence producing different recommendations for a week horizon and a year horizon.extract.test.ts— a passing build is never treated as a decision, and never attached to the taken path.
- In-Jira rendering unconfirmed. The deployed modules have not been observed mounting. The standalone host exists so the product can be reviewed regardless.
- Live graph validation. No call has been made against a real Teamwork Graph. Relationship names in
queries.tsare written from docs and must be checked in TWG Labs. - Query registration has no CLI entry point in Forge 15; it needs a webtrigger or admin page.
- Dossier writer and Bitbucket trigger are designed but unbuilt.
Apache License 2.0 — see LICENSE.
Copyright 2026 the Cascade authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.