GeezerVison is showing github.com — feat(pm-stack): Phase 1 — Kaneo deployment, tunnel endpoint, design record by dezren39 · Pull Request #752 · developing-today/code
Conversation
dezren39
commented
Oct 24, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
What this is
Phase 1 of the project-management stack (Drew's directive 2026-10-24): the approved layered design — GitHub as source of truth, Kaneo as the per-repo execution board, ready-for-agent / Pad / a table layer in later phases, thin glue + aggregator UI last — with Kaneo actually running in containers on the laptop, deployed entirely from this repo.
Design record: doc/2026-10-24T11-05-38Z_design_project-management-stack/ (layers/ownership, verified Kaneo sync facts at v2.47.0, data flow, phases, container-now/k8s-later, the repo-topology rule: everything here; only upstream forks live elsewhere).
What's in the PR
pm-stack/ — pinned compose (Kaneo 2.47.0 + PostgreSQL 16, loopback-only), deploy.sh (decrypts SOPS → renders mode-600 .env/tunnel.env → compose up → health gate), systemd/pm-tunnel.service, .env.example, github-app-manifest.json, runbook README.
secrets/pm-stack.sops.yaml — all stack secrets, SOPS/age to laptop + sandbox recipients; matching path rule added to .sops.yaml (opendesign precedent). The same values are filed in Bitwarden and 1Password (kaneo.admin-password, kaneo.postgres-password, kaneo.auth-secret, kaneo.notification-encryption-key, cloudflare.tunnel.amd-6-pm-stack-token).
Verified 2026-10-24
- Both containers healthy on the laptop (
~/pm-stack); Kaneo answers on 127.0.0.1:5173 only; Postgres not exposed.
- Cloudflare Tunnel
amd-6-pm-stack (remotely managed) + DNS: https://kaneo.security.cab/api/health → ok from the public internet; connector runs as the pm-tunnel systemd user unit.
- Kaneo bootstrapped via API: admin account (Drew), workspace Developing Today, project code; then
DISABLE_REGISTRATION=true and a recreate — data intact.
- SOPS round-trip verified (decrypt with the sandbox recipient matches the generated plaintext field-for-field).
Not yet done — why this PR stays open
GitHub App registration is a browser-only flow (GitHub has no API for creating apps), so it is the one remaining Phase 1 step:
- Manifest flow with
pm-stack/github-app-manifest.json under the developing-today org (permissions exactly as Kaneo documents: Issues RW; PRs/Contents/Metadata read; events Issues, Issue comments, Pull requests, Push; webhook → https://kaneo.security.cab/api/github-integration/webhook).
- Exchange the manifest
code → App ID, slug, PEM, webhook secret → into the SOPS file (+ vaults) → re-run deploy.sh.
- Install the app on developing-today/code only.
- Connect the Kaneo project, import issues (104 open at time of writing), and run the sync checks: (a) GitHub issue → Kaneo task via webhook, (b) Kaneo comment → GitHub issue, (c) GitHub comment → Kaneo task, (d) close from Kaneo closes the issue. Results will be posted here.
Once those pass, this is purely additive and clear to merge.
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…ecord
Layered project-management stack (design record in doc/): GitHub stays
the source of truth, Kaneo is the per-repo execution board, thin glue
and an aggregator UI come in later phases.
Phase 1 as built and verified 2026-10-24:
- pm-stack/: pinned Kaneo 2.47.0 + PostgreSQL 16 compose, deploy.sh
(SOPS -> rendered env -> compose up -> health gate), Cloudflare
Tunnel user unit, runbook, GitHub App manifest.
- Running on the laptop (amd-6), loopback-only, both containers
healthy; https://kaneo.security.cab live through tunnel
amd-6-pm-stack; admin account, workspace and 'code' project
created via API; registration closed.
- secrets/pm-stack.sops.yaml (laptop + sandbox recipients; new
.sops.yaml path rule, mirroring the opendesign precedent); the same
values are filed in Bitwarden and 1Password.
Remaining Phase 1 step: register our GitHub App (browser-only flow;
manifest is in pm-stack/), install on developing-today/code, import
issues and run the four sync checks. PR stays open until those pass.
coderabbitai
Bot
commented
Oct 24, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Caution
Review failed
The pull request is closed.
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
-
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-10-24T11:56:51.690439Z |
1fa0d20 |
New commits |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1b5ee2068e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
echo "AUTH_SECRET=$(get auth_secret)"
|
|
|
echo "NOTIFICATION_SECRET_ENCRYPTION_KEY=$(get notification_secret_encryption_key)"
|
|
|
# Preserve an operator-set DISABLE_REGISTRATION across re-renders.
|
|
|
if [[ -f .env ]] && grep -q '^DISABLE_REGISTRATION=true' .env; then
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preserve registration state before truncating .env
When an operator has set DISABLE_REGISTRATION=true, every subsequent deployment reopens registration: the brace group's > .env redirection truncates the existing file before this check runs, so grep never sees the saved setting and the renderer writes false. The deployment then recreates Kaneo with registration enabled on the public instance. This is reproducible by running deploy.sh render with an existing .env containing DISABLE_REGISTRATION=true. Read the saved flag before opening the output file, or render to a temporary file and replace .env afterward.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
App 'developing-today kaneo 2' (ID 5454422, slug
developing-today-kaneo-2): github_app_id, github_app_name,
github_webhook_secret and github_private_key_base64 populated from
the manifest-conversion response, plus github_app_client_id /
github_app_client_secret for completeness. Values verified by
decrypt-and-hash on both the sandbox and laptop recipients, and
mirrored to Bitwarden + 1Password (kaneo.github-app-*).
The app was renamed at the owner's request: 'developing-today
kaneo 2' -> 'developing.today' (slug developing-today-kaneo-2 ->
developing-today). App ID, installation, webhook and all credential
values are unchanged; only github_app_name follows the slug.
The PR's treefmt check failed on six files (deploy.sh, compose,
README, manifest, design record, SOPS secrets). This is the output
of the repo's own formatter (nix run .#format-check). The SOPS file
was verified after formatting: it still decrypts with both age
recipients and every value is byte-identical to the vault copies.
Phase 1 completion — GitHub App filed, project connected, sync verified end-to-end
GitHub App: developing.today — slug developing-today, App ID 5454422, owned by the developing-today org. (Registered as "developing-today kaneo 2" and renamed at the owner's request mid-flight; the rename changed only the name/slug — App ID, installation, webhook URL and every credential value are unchanged, and the SOPS file follows the slug in 966608ed.)
Installation: id 174792676 on the developing-today org, repository selection = developing-today/code only (verified via the app API: /installation/repositories returns exactly that one repo). Permissions Issues RW + PRs/Contents/Metadata read; events issues/issue_comment/pull_request/push; webhook https://kaneo.security.cab/api/github-integration/webhook.
Credentials filed three ways, hash-verified in each store, then the staged conversion response was shredded:
- SOPS
secrets/pm-stack.sops.yaml (github_app_id, github_app_name, github_webhook_secret, github_private_key_base64, plus github_app_client_id / github_app_client_secret) — decrypt-and-hash verified under both age recipients (sandbox + laptop), PEM byte-exact.
- Bitwarden (project "developing today") and 1Password (Dev vault) as
kaneo.github-app-id, kaneo.github-app-client-id, kaneo.github-app-client-secret, kaneo.github-app-webhook-secret, kaneo.github-app-private-key — all byte-exact on read-back.
Kaneo configured: deploy.sh re-rendered env from SOPS and recreated the containers; /api/health ok locally and at https://kaneo.security.cab; GET /api/github-integration/app-info reports the app (developing-today) connected at instance level.
One implementation note: connecting a project requires the Kaneo admin to have a linked GitHub account, and this instance reports accountLinkingAvailable: false (GitHub SSO is not configured), so the link was asserted directly in Kaneo's database — a row recording the admin's true GitHub identity (dezren39, id 11225574), which is exactly what the connect flow checks. POST /api/github-integration/verify then independently confirmed server-side, through the installation, that the app is installed on the repo with all required permissions. Replacing this with the OAuth link flow later (if GitHub SSO is ever configured) is a drop-in change.
Import: project code connected (integration vop4830p80why5jog21k2fju, active, verified) and issues imported: 105 imported, 0 updated, 0 skipped — matching a live recount of open issues in developing-today/code (105; the design record's 104 was already one stale). 105 tasks + 105 issue links (+3 PR links) in the project, and 19 pre-existing issue comments came across as activity entries (spot-checked: the comment on #730).
Sync verification — throwaway issue #754 ↔ Kaneo task CODE-106:
| Check |
Result |
Evidence |
| (a) Issue created on GitHub → task appears in Kaneo via webhook |
✅ PASS |
issues/opened delivery 11:51:50Z → HTTP 200 (deliveries were 400 before the webhook secret was configured); task zohtha1qqrclxm50f7bnk20r created; app bot posted the link-back comment |
| (b) Comment in Kaneo → appears on GitHub |
✅ PASS |
Comment detjeez7… posted via Kaneo API 11:52:16Z appeared on #754 the same second, authored by developing-today[bot] |
| (c) Comment on GitHub → appears in Kaneo |
✅ PASS |
issuecomment-6383868779 (as dezren39) is on the task's activity, attributed to dezren39 / source github |
| (d) Task moved to Done in Kaneo → GitHub issue closes |
✅ PASS |
PUT /api/task/status/… → #754 closed (state_reason: completed) |
Test artifacts: #754 stays closed as the record and CODE-106 stays in Done, linked — one clean trail, nothing duplicated.
CI note: the treefmt check failed on the branch's files as authored; fixed in 1fa0d20d by applying the repo's own formatter. The formatted SOPS file was re-verified (decrypts under both recipients; every value byte-identical to the vault copies) and the laptop stack was redeployed from it before pushing.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
dezren39
pushed a commit
that referenced
this pull request
Oct 24, 2026
…st tables
- ready-for-agent 1.1.0 as a systemd user unit (no upstream container
image); developing-today/code registered via the harness GraphQL API,
Merge Policy OFF (human merge), all issue authors included, build
model on the laptop's OpenCode 2. Trial on issue #762 produced PR
#763 with exactly the requested one-line diff; left open for review.
- Pad 0.18.1 container (loopback + tailnet only), workspace seeded
with the PM-stack design + Phase 1/2 plans as Plan items.
- Grist 1.7.21 (grist-oss) chosen over Baserow (evaluation in the
design record); seeded Program roadmap with 16 real rows.
- Kaneo registration posture fix: deploy.sh renders
DISABLE_REGISTRATION=true by default; opening requires the explicit
KANEO_OPEN_REGISTRATION=1 one-render opt-out (2026-10-24 incident,
recorded in the design doc's Phase 1 as-built correction).
- Design record: Phase 1 as-built completed from PR #752's record,
Phase 2 as-built, phases numbering reconciled, aggregator UI
scoped (cross-repo links + cross-repo comments as first-class
requirements), Kaneo fork decision recorded.
- New secrets (pad.*, grist.*) in SOPS, mirrored to Bitwarden and
1Password per the fleet rule.
dezren39
added a commit
that referenced
this pull request
Oct 25, 2026
The aggregator UI (session K, pm/aggregator-ui) consumes a swappable
Source behind one interface. Lands the read model (repo-qualified
issue/PR refs, the comment projection with PR-interior entries), the
pure derivations (execution strip, roadmap timeline lanes, unified
comment stream), and a fixture source shaped like the live readers,
with the real Grist seed rows and the design record's known refs
(#752/#754/#762/#763, nix #501-508, opencode #365).
This was referenced Oct 29, 2026
This was referenced Nov 8, 2026
This was referenced Nov 21, 2026
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|