What the GitHub connector is for
Architecture knowledge already lives in repositories — ADRs, manifests, IaC, and the services those repos implement. Delivery also lands there when pull requests merge. The GitHub connector brings both into the Architecture Context Plane.
The GitHub connector is a DecisionPen-owned GitHub App. An administrator installs it on your GitHub organisation (or account), maps repositories to entities on the estate map, then can:
- Scan repos for discovery — on demand, DecisionPen reads allowlisted architecture paths and technology manifests and queues proposals for Inbox review.
- Receive merged-PR evidence — ongoing implementation signal when mapped repos change, again as proposals only.
Nothing joins the Confirmed map until a person accepts it. There is no edge agent and no Edge API token for this path. Auth is the GitHub App installation plus webhook signature verification — separate from Claude / Cursor MCP, which uses Edge tokens.
What you get after setup
Repo → entity mappings — you choose which repositories implement or document which applications, platforms, or other estate entities. Monorepos can use a path scope so only relevant folders count for scans and for merged-PR evidence.
Architecture discovery scan — for each confirmed link, Scan architecture reads allowlisted paths (ADRs, architecture docs, README, OpenAPI/compose/Dockerfiles, package and language manifests, Terraform and related IaC, GitHub workflows, and similar) and queues technology / architecture proposals. This is a bounded discovery pass over the repo as it stands today — not a full-repo crawl and not a substitute for broader enterprise discovery from HLDs and inventories.
Merged-PR evidence — when a PR merges on a mapped repo (and optional path scope), DecisionPen indexes it only if the change is architecturally significant (ADR/architecture language, or allowlisted architecture/tech paths in the diff). Routine marketing or unrelated code merges are skipped so the index stays lean.
Who can set this up
You need a DecisionPen Administrator, plus someone who can install GitHub Apps on the target organisation or account.
Step 1 — Open GitHub App in Admin
- Sign in to DecisionPen as an Administrator.
- Open Admin → Integrations.
- Open GitHub App.
If the panel shows the feature as disabled or not configured, the DecisionPen environment still needs App credentials and GITHUB_APP_ENABLED=true. Contact your DecisionPen operator before continuing.
Step 2 — Install the DecisionPen GitHub App
- Click Connect GitHub.
- GitHub opens the DecisionPen App install flow. Choose the organisation or account, and the repositories the App may access (all repos, or a selected set).
- Confirm the install. GitHub redirects back to DecisionPen and binds that installation to your organisation.
- You should see an active installation listed under Installations.
Step 3 — Load repositories
- Select the installation if you have more than one.
- Under Repositories, click Load from GitHub.
- Click a repository name to fill the mapping form, or type
owner/namemanually.
Step 4 — Map each repo to an entity
Scans and merged-PR evidence only attach to entities you explicitly link. Create one mapping per repo↔entity pair you care about.
- Confirm Repo (owner/name) is correct.
- Under Entity, search by name and pick the estate item. You do not need the UUID. Suggestions from the repo name appear when DecisionPen can guess a match.
- Optional — Path scope for monorepos (for example
services/billing/**). Only paths under that scope count for architecture scans and for merged-PR evidence on this link. - Choose how the repo relates:
- Implements — source code for this entity (default for app and service repos).
- Documents — docs or ADRs about the entity rather than implementing it.
- Click Save mapping. The link is saved as confirmed.
Repeat for each repository you want on the plane. You can later Reject or Revoke a link from the existing-links list.
Step 5 — Scan repos for discovery
After a link is confirmed, run a discovery scan to seed the plane from what the repository already contains.
- On a confirmed link, click Scan architecture.
- DecisionPen queues a bounded read of allowlisted paths (architecture docs, ADRs, key manifests, IaC, workflows, and similar), honouring path scope when set.
- When the scan finishes, open Inbox and review proposals — technology components, architecture signals, and related context. Nothing is auto-confirmed.
Re-run a scan when a repo’s architecture surface has changed and you want a fresh discovery pass. Re-scans replace the previous scan snapshot for that repo/ref (and path scope) — they do not stack duplicate index rows. Day-to-day change still arrives from merged PRs (next step).
Step 6 — Keep the plane current with merges
- Merge a pull request on a mapped repository (respecting path scope if you set one). Prefer a change that touches architecture docs or meaningful implementation paths when you want to verify the pipe.
- In DecisionPen, open Inbox (and entity context / evidence views as you normally review proposals).
- Accept what should join the Confirmed map; leave or reject the rest.
Disconnect or remove an installation
- In DecisionPen Admin → Integrations → GitHub App, select the installation and choose Mark removed. That clears the binding and revokes links in DecisionPen.
- Also uninstall the App from the GitHub organisation settings so webhooks stop.
What comes next
Connect agents with Cursor or Claude MCP, optionally an S3 document store, then continue the reading path with incremental modelling.