-
Notifications
You must be signed in to change notification settings - Fork 64
fix(cli): preserve matching fleet enrollment identity #1613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kjgbot
wants to merge
2
commits into
main
Choose a base branch
from
fix/node-enrollment-workspace-0825
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
248 changes: 248 additions & 0 deletions
248
.agentworkforce/trajectories/completed/2026-08/traj_swo9tkg9voc8.trace.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,248 @@ | ||
| { | ||
| "version": "1.0.0", | ||
| "id": "71e42df2-d556-49b6-afe5-4789300d40c8", | ||
| "timestamp": "2026-08-26T00:34:27.910Z", | ||
| "trajectory": "traj_swo9tkg9voc8", | ||
| "files": [ | ||
| { | ||
| "path": "CHANGELOG.md", | ||
| "conversations": [ | ||
| { | ||
| "contributor": { | ||
| "type": "ai" | ||
| }, | ||
| "ranges": [ | ||
| { | ||
| "start_line": 5, | ||
| "end_line": 15, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "path": "packages/cli/README.md", | ||
| "conversations": [ | ||
| { | ||
| "contributor": { | ||
| "type": "ai" | ||
| }, | ||
| "ranges": [ | ||
| { | ||
| "start_line": 89, | ||
| "end_line": 102, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "path": "packages/cli/src/cli/commands/cloud.test.ts", | ||
| "conversations": [ | ||
| { | ||
| "contributor": { | ||
| "type": "ai" | ||
| }, | ||
| "ranges": [ | ||
| { | ||
| "start_line": 1789, | ||
| "end_line": 1865, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| }, | ||
| { | ||
| "start_line": 1926, | ||
| "end_line": 1932, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "path": "packages/cli/src/cli/commands/cloud.ts", | ||
| "conversations": [ | ||
| { | ||
| "contributor": { | ||
| "type": "ai" | ||
| }, | ||
| "ranges": [ | ||
| { | ||
| "start_line": 460, | ||
| "end_line": 488, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| }, | ||
| { | ||
| "start_line": 1019, | ||
| "end_line": 1025, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| }, | ||
| { | ||
| "start_line": 1037, | ||
| "end_line": 1043, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "path": "packages/cli/src/cli/commands/node.test.ts", | ||
| "conversations": [ | ||
| { | ||
| "contributor": { | ||
| "type": "ai" | ||
| }, | ||
| "ranges": [ | ||
| { | ||
| "start_line": 197, | ||
| "end_line": 320, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| }, | ||
| { | ||
| "start_line": 338, | ||
| "end_line": 355, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| }, | ||
| { | ||
| "start_line": 359, | ||
| "end_line": 366, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "path": "packages/cli/src/cli/commands/node.ts", | ||
| "conversations": [ | ||
| { | ||
| "contributor": { | ||
| "type": "ai" | ||
| }, | ||
| "ranges": [ | ||
| { | ||
| "start_line": 90, | ||
| "end_line": 102, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| }, | ||
| { | ||
| "start_line": 117, | ||
| "end_line": 123, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| }, | ||
| { | ||
| "start_line": 137, | ||
| "end_line": 152, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| }, | ||
| { | ||
| "start_line": 171, | ||
| "end_line": 180, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| }, | ||
| { | ||
| "start_line": 198, | ||
| "end_line": 227, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| }, | ||
| { | ||
| "start_line": 235, | ||
| "end_line": 247, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| }, | ||
| { | ||
| "start_line": 255, | ||
| "end_line": 261, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| }, | ||
| { | ||
| "start_line": 288, | ||
| "end_line": 341, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "path": "packages/cli/src/cli/lib/enrollment-pin.test.ts", | ||
| "conversations": [ | ||
| { | ||
| "contributor": { | ||
| "type": "ai" | ||
| }, | ||
| "ranges": [ | ||
| { | ||
| "start_line": 28, | ||
| "end_line": 87, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| }, | ||
| { | ||
| "start_line": 98, | ||
| "end_line": 104, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "path": "packages/cli/src/cli/lib/enrollment-pin.ts", | ||
| "conversations": [ | ||
| { | ||
| "contributor": { | ||
| "type": "ai" | ||
| }, | ||
| "ranges": [ | ||
| { | ||
| "start_line": 11, | ||
| "end_line": 35, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| }, | ||
| { | ||
| "start_line": 66, | ||
| "end_line": 92, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "path": "tests/relayflows/cases/1613-matching-fleet-enrollment-identity/case.json", | ||
| "conversations": [ | ||
| { | ||
| "contributor": { | ||
| "type": "ai" | ||
| }, | ||
| "ranges": [ | ||
| { | ||
| "start_line": 1, | ||
| "end_line": 20, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "path": "tests/relayflows/cases/1613-matching-fleet-enrollment-identity/run.mjs", | ||
| "conversations": [ | ||
| { | ||
| "contributor": { | ||
| "type": "ai" | ||
| }, | ||
| "ranges": [ | ||
| { | ||
| "start_line": 1, | ||
| "end_line": 170, | ||
| "revision": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
39 changes: 39 additions & 0 deletions
39
.agentworkforce/trajectories/completed/2026-08/traj_swo9tkg9voc8/summary.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # Trajectory: Finish PR 1613 enrollment workspace identity proof | ||
|
|
||
| > **Status:** ✅ Completed | ||
| > **Task:** PR-1613 | ||
| > **Confidence:** 90% | ||
| > **Started:** August 26, 2026 at 02:33 AM | ||
| > **Completed:** August 26, 2026 at 02:34 AM | ||
|
|
||
| --- | ||
|
|
||
| ## Summary | ||
|
|
||
| Rebased PR 1613, addressed all three review findings, added deterministic exact-base/head RelayFlow coverage, and validated focused tests plus build and formatting. | ||
|
|
||
| **Approach:** Preserved the public node-up workflow, hardened matching-workspace enrollment selection and legacy-pin verification, and added an external exact-checkout harness. | ||
|
|
||
| --- | ||
|
|
||
| ## Key Decisions | ||
|
|
||
| ### Use the built production node command with real temporary enrollment and project-pin stores for the RelayFlow case | ||
| - **Chose:** Use the built production node command with real temporary enrollment and project-pin stores for the RelayFlow case | ||
| - **Reasoning:** This deterministically exercises the public node-up identity selection on both exact checkouts while a harness-owned broker seam prevents external daemon or Cloud side effects. | ||
|
|
||
| --- | ||
|
|
||
| ## Chapters | ||
|
|
||
| ### 1. Work | ||
| *Agent: default* | ||
|
|
||
| - Use the built production node command with real temporary enrollment and project-pin stores for the RelayFlow case: Use the built production node command with real temporary enrollment and project-pin stores for the RelayFlow case | ||
|
|
||
| --- | ||
|
|
||
| ## Artifacts | ||
|
|
||
| **Commits:** 3bafddd68 | ||
| **Files changed:** 10 |
71 changes: 71 additions & 0 deletions
71
.agentworkforce/trajectories/completed/2026-08/traj_swo9tkg9voc8/trajectory.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| { | ||
| "id": "traj_swo9tkg9voc8", | ||
| "version": 1, | ||
| "task": { | ||
| "title": "Finish PR 1613 enrollment workspace identity proof", | ||
| "source": { | ||
| "system": "plain", | ||
| "id": "PR-1613" | ||
| } | ||
| }, | ||
| "status": "completed", | ||
| "startedAt": "2026-08-26T00:33:55.506Z", | ||
| "completedAt": "2026-08-26T00:34:27.540Z", | ||
| "agents": [ | ||
| { | ||
| "name": "default", | ||
| "role": "lead", | ||
| "joinedAt": "2026-08-26T00:33:58.993Z" | ||
| } | ||
| ], | ||
| "chapters": [ | ||
| { | ||
| "id": "chap_rncyio9dzw7v", | ||
| "title": "Work", | ||
| "agentName": "default", | ||
| "startedAt": "2026-08-26T00:33:58.993Z", | ||
| "endedAt": "2026-08-26T00:34:27.540Z", | ||
| "events": [ | ||
| { | ||
| "ts": 1787704438998, | ||
| "type": "decision", | ||
| "content": "Use the built production node command with real temporary enrollment and project-pin stores for the RelayFlow case: Use the built production node command with real temporary enrollment and project-pin stores for the RelayFlow case", | ||
| "raw": { | ||
| "question": "Use the built production node command with real temporary enrollment and project-pin stores for the RelayFlow case", | ||
| "chosen": "Use the built production node command with real temporary enrollment and project-pin stores for the RelayFlow case", | ||
| "alternatives": [], | ||
| "reasoning": "This deterministically exercises the public node-up identity selection on both exact checkouts while a harness-owned broker seam prevents external daemon or Cloud side effects." | ||
| }, | ||
| "significance": "high" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "retrospective": { | ||
| "summary": "Rebased PR 1613, addressed all three review findings, added deterministic exact-base/head RelayFlow coverage, and validated focused tests plus build and formatting.", | ||
| "approach": "Preserved the public node-up workflow, hardened matching-workspace enrollment selection and legacy-pin verification, and added an external exact-checkout harness.", | ||
| "confidence": 0.9 | ||
| }, | ||
| "commits": [ | ||
| "3bafddd68" | ||
| ], | ||
| "filesChanged": [ | ||
| "CHANGELOG.md", | ||
| "packages/cli/README.md", | ||
| "packages/cli/src/cli/commands/cloud.test.ts", | ||
| "packages/cli/src/cli/commands/cloud.ts", | ||
| "packages/cli/src/cli/commands/node.test.ts", | ||
| "packages/cli/src/cli/commands/node.ts", | ||
| "packages/cli/src/cli/lib/enrollment-pin.test.ts", | ||
| "packages/cli/src/cli/lib/enrollment-pin.ts", | ||
| "tests/relayflows/cases/1613-matching-fleet-enrollment-identity/case.json", | ||
| "tests/relayflows/cases/1613-matching-fleet-enrollment-identity/run.mjs" | ||
| ], | ||
| "projectId": "AgentWorkforce/relay", | ||
| "tags": [], | ||
| "_trace": { | ||
| "startRef": "10fc5ce1c4b6f0ac557b8cc0a2d3febc1cc6b2e6", | ||
| "endRef": "3bafddd686b219a31e4a9d99a5c291b8b61ddd16", | ||
| "traceId": "71e42df2-d556-49b6-afe5-4789300d40c8" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.