Title: fix(pm-stack backup): pmp_links backup source resolution and offsite assertions (#5315 follow-up) · Issue #7096 · developing-today/code · GitHub
Open Graph Title: fix(pm-stack backup): pmp_links backup source resolution and offsite assertions (#5315 follow-up) · Issue #7096 · developing-today/code
X Title: fix(pm-stack backup): pmp_links backup source resolution and offsite assertions (#5315 follow-up) · Issue #7096 · developing-today/code
Description: fix(pm-stack backup): pmp_links backup source resolution and offsite assertions — follow-up to merged PR #5315 (for #1744) Bounded follow-up to unresolved review findings on merged PR #5315, filed by triage task 11960 (issue #1744) so th...
Open Graph Description: fix(pm-stack backup): pmp_links backup source resolution and offsite assertions — follow-up to merged PR #5315 (for #1744) Bounded follow-up to unresolved review findings on merged PR #5315, filed ...
X Description: fix(pm-stack backup): pmp_links backup source resolution and offsite assertions — follow-up to merged PR #5315 (for #1744) Bounded follow-up to unresolved review findings on merged PR #5315, filed ...
Opengraph URL: https://github.com/developing-today/code/issues/7096
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix(pm-stack backup): pmp_links backup source resolution and offsite assertions (#5315 follow-up)","articleBody":"# fix(pm-stack backup): pmp_links backup source resolution and offsite assertions — follow-up to merged PR #5315 (for #1744)\n\nBounded follow-up to unresolved review findings on merged PR #5315, filed by triage task 11960 (issue #1744) so the fix has a fresh dedupe key.\n\n## Problem\n\nThe merged PR #5315 pmp_links archive path still has unresolved source-selection and verification gaps:\n\n- `DATABASE_URL` handling may select the wrong entry or local database (last-assignment parsing, CR/edge-whitespace and quote handling).\n- Remote/unsupported non-file URLs can silently fall through to a local default instead of failing explicitly; `file:` URL paths are not decoded before existence checks.\n- Relative/default DB resolution can miss the active projector file under `PM_PROJECTOR_DIR` before falling back to the state directory.\n- The upload test can pass when only one offsite destination (R2 or Drive) was called — it must require both.\n\nThis weakens the backup evidence needed for issue #1744 criterion 3 (one backup target covers the stack's data).\n\n## Evidence\n\n- PR #5315 is MERGED; its CodeRabbit review on commit 7c34d0ab1a has unresolved findings for: last `DATABASE_URL` assignment/parsing, file URL decoding, unsupported non-file URL fallback, `PM_PROJECTOR_DIR` default resolution, and requiring both R2 and Drive upload calls in the test.\n- Files: `nixos/home/pm-dashboard-backup.sh`, `nixos/home/pm-dashboard-backup-pmp-links.test.sh` (at main edef34824f8be24a56a170e6aca3f44251c20caf when scoped).\n- Issue #1744: acceptance criteria 1-2 checked; criterion 3 remains unchecked.\n\n## Acceptance criteria\n\n- Resolve `DATABASE_URL` using the last matching environment-file assignment; trim CR/edge whitespace plus one matching quote pair without altering interior path characters.\n- Decode `file:` URL paths before existence checks; do not silently fall back to a local database for an unsupported non-file `DATABASE_URL` (fail explicitly unless remote export is implemented).\n- Resolve the active relative/default projector database under `PM_PROJECTOR_DIR` before using the existing state-directory fallback.\n- The with-database archive test passes only when the stub log records `copyto` calls to both R2 and Drive.\n- Targeted tests pass: `nixos/home/pm-dashboard-backup-pmp-links.test.sh` and `nixos/home/pm-dashboard-backup-manifest.test.sh`.\n- Out of scope: re-implementing the merged pmp_links export, migrating service data, changing issue #1744's architecture or criteria.\n\nRefs: issue #1744, PR #5315, PR #6183, task 11960.\n","author":{"url":"https://github.com/apps/developing-today","@type":"Person","name":"developing-today"},"datePublished":"2026-11-08T04:03:33Z","url":"https://github.com/developing-today/code/issues/7096"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bcddd25f-d9fa-399b-3c39-2972a9401117 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C92C:80C99:3045ED:40768A:6B061817 |
| html-safe-nonce | db440f547751d6bf7f5fe624fb809e6262e381ed3f001534e92921f2a61ab56b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTJDOjgwQzk5OjMwNDVFRDo0MDc2OEE6NkIwNjE4MTciLCJ2aXNpdG9yX2lkIjoiMTQ0OTM1NzcxODIyMDgzODkzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cbf62dcabf29d45587042efaebe08886344ce4c5677dcab02bd9f4fd711891b8 |
| hovercard-subject-tag | issue:6267419212 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/7096/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ea49369a6c7d0783bff46c8008967ef9edc252654579630697ce38bf2ffa8e8b/developing-today/code/issues/7096 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ea49369a6c7d0783bff46c8008967ef9edc252654579630697ce38bf2ffa8e8b/developing-today/code/issues/7096 |
| og:image:alt | fix(pm-stack backup): pmp_links backup source resolution and offsite assertions — follow-up to merged PR #5315 (for #1744) Bounded follow-up to unresolved review findings on merged PR #5315, filed ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | developing-today[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width