Skip to content

feat(pm-console): report active release tree identity - #15960

Merged
developing-today-fleet[bot] merged 2 commits into
mainfrom
oc-code-03/issue-13833-tree-identity
Nov 28, 2026
Merged

developing-today-fleet[bot] merged 2 commits into
mainfrom
oc-code-03/issue-13833-tree-identity

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Read the active release tree OID from immutable .release metadata; dev/checkouts do not guess it from the commit.
  • Carry the optional tree field through the signed machine-to-edge sync, validate it as exactly 40 lowercase hex characters, persist it, and expose it as hostTree in health and tree in Machines rows.
  • Document the wire contract and leave Worker-side comparison plus the sustained divergence warning as the follow-on. pm-console: the laptop's console has not followed main since 2026-11-23 22:09Z #13833 remains open.

Evidence

  • bun test --test-name-pattern 'release|health|host is running|machines: the edge says|asked which machines' test/console.test.ts test/edge.test.ts test/work.test.ts — passed (11 tests).
  • bun test test/redeploy.test.ts test/install.test.ts — passed (20 tests).
  • Remote Fleet dispatch was attempted but rejected with HTTP 403 (Resource not accessible by integration); bun test --check could not run locally because this worktree lacks the configured @cloudflare/workers-types and bun type packages.
  • Evidence level: ran focused tests locally at d6334a256c9; no production checkout or configuration changed.

Merge Danger

Low: additive optional sync field and response fields; older hosts remain compatible and invalid/missing tree values become null. Does not change release activation.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-27T06:25:47Z",
    "session_id": "ses_e5de496e81dffeSRyohrNnJXk9",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/code-oc-code-03-13833",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/code-oc-code-03-13833",
      "repo": "developing-today/code",
      "branch": "oc-code-03/issue-13833-tree-identity",
      "sha": "d6334a256c961123094514a40e9cc80585a11e30"
    },
    "auth_subject": "agent-next-25-local",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bd359dc3-7cdb-4541-9a0d-a4c863d58f52

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Lane 0037-K (alpha DRIVE open-PR sweep) — NOT merged, gate-hold at head d6334a2.

Verified via gh CLI only (no clones): claim-scan clean (sole comment is CodeRabbit skip); body + ALL comments + full diff read — 8 files +83/-19 (pm-stack/console release tree identity: edge/server/sync/edge-proto + tests + README), matches body, not docs-only. Check-runs on exact head: CodeRabbit + Proof, both skipped; code Actions runs on exact head = 0. Body evidence is local-only (focused bun tests at this head; the body's own remote Fleet dispatch was rejected HTTP 403) — no passing run on the exact head re-readable via gh api.

Blocker: fresh state is OPEN / non-draft / CONFLICTING / DIRTY — fails the CLEAN + MERGEABLE merge criteria, and the evidence gate also fails at this head.

Unblock: rebase/resolve onto current main, push a new head, and provide ONE passing run on the new exact head re-readable via gh api (fleet job-log Target HEAD counts); then merge under standing authority. Key: 0037-K

…t-API conflict resolution)

edge.ts resolved by hand: main's multi-machine machinesSaid/host-report structure kept; the branch's release tree identity carried through it — tree parsed from the signed host report (exactly 40 lowercase hex), kept as hostTree for the first machine, persisted in the host kv record, and exposed as tree in the Machines answer. Other seven files are the clean three-way merge result.
@dezren39

Copy link
Copy Markdown
Member

🤖 Lane 1207-N (Archer, charlie ADVANCE queue-draw/dirty-PR lane, 2026-11-28) — conflict RESOLVED via Git-API merge commit; verification dispatched, merge pending its conclusion.

  • Claim-scan before work: sole comments were CodeRabbit + lane 0037-K's gate-hold (2026-11-27); no live sibling lane owns this PR (author lane oc-code-03 inactive since 2026-11-27). Fallback pick after the queue cycled gated parks.
  • New head: 672835e — a true merge commit (parents: old head d6334a2 + main cbb2cbb), authored via the Git Data API (no clone, no force-push; ref update was a fast-forward). Tree = main's tree with the PR's 8 files replaced by their three-way merge results.
  • Only ONE file truly conflicted: pm-stack/console/edge/src/edge.ts (the other 7 merged cleanly). Resolution keeps main's multi-machine structure (machinesSaid array + per-machine mhost keys) and carries the branch's tree identity through it: tree parsed from the signed host report (exactly 40 lowercase hex), stored as hostTree for the first machine, persisted in the host kv record, and exposed as tree in the Machines answer — matching the MachinesAnswer type (edge-proto.ts, tree: string | null) and the work.test.ts expectation.
  • Fresh state after the push (two gh reads): OPEN / non-draft / CLEAN / MERGEABLE, compare main...branch = ahead 2 / behind 0. The DIRTY blocker from 0037-K's hold is gone.
  • Verification: fleet-command run 46175772255 https://github.com/developing-today/fleet/actions/runs/46175772255 dispatched on ref refs/pull/15960/merge running the PR body's focused bun suites (console/edge/work patterns + redeploy/install).

Wake: run 46175772255 concludes — green = merge under standing authority; red = the failing log scopes the fix on this head. Key: 1207-N

@developing-today-fleet
developing-today-fleet Bot merged commit fabe2d9 into main Nov 28, 2026
3 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the oc-code-03/issue-13833-tree-identity branch November 28, 2026 18:48
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

🤖 Lane 1237-C (alpha DRIVE landings, 2026-11-28 12:37 CST) — MERGED. Completed lane 1207-N's stated wake condition: verification run 46175772255 (fleet-command, dispatch 1207N-15960, on refs/pull/15960/merge, PR body's focused bun suites) re-read via gh api = completed/success (updated 2026-11-28T18:32:56Z). Fresh pre-merge read: OPEN, non-draft, CLEAN/MERGEABLE, head unchanged at exact 672835eabc9156f6d6f999616ce484fa9cde40c9. Merged with merge commit under standing authority. Second gh read confirms MERGED 2026-11-28T18:48:22Z, merge commit fabe2d9443cac485f5692c8656abea2d9f06fae9. Issue #13833 stays OPEN by design (Worker-side comparison + divergence warning follow-on per PR body). No queue task id is recorded on this PR (pm-metadata queue_id null); nothing to close in queue bookkeeping for this lane.

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.

1 participant