diff --git a/checkpoint.json b/checkpoint.json index 3c27f91b9..5ebe11067 100644 --- a/checkpoint.json +++ b/checkpoint.json @@ -1,36 +1,40 @@ { - "timestamp": "2026-03-19T23:40:46.066974Z", - "current_node": "preflight_compile", + "timestamp": "2026-03-19T23:41:02.348842Z", + "current_node": "preflight_lint", "completed_nodes": [ "start", "toolchain", - "preflight_compile" + "preflight_compile", + "preflight_lint" ], "node_retries": { - "toolchain": 1, + "start": 1, "preflight_compile": 1, - "start": 1 + "preflight_lint": 1, + "toolchain": 1 }, "context_values": { - "current_node": "preflight_compile", + "current_node": "preflight_lint", "failure_class": "", "graph.rankdir": "LR", "internal.fidelity": "compact", "failure_signature": "", - "current.preamble": "Goal: # Plan: Merge fabro-linear and GitHub tracker into fabro-tracker\n\n## Context\n\nThe tracker ecosystem currently has three crates:\n- **fabro-tracker** — trait-only (57 lines): `Tracker` trait, `Issue`, `BlockerRef`\n- **fabro-linear** — standalone Linear functions that duplicate the `Issue`/`BlockerRef` types and don't implement the `Tracker` trait. Entirely unused.\n- **fabro-github** — mixed crate: GitHub App auth/PRs/branches (~70%) + `GitHubTracker` implementing `Tracker` (~30%). The `GitHubTracker` is also unused by consumers.\n\nGoal: consolidate both tracker implementations into `fabro-tracker`, keeping non-tracker GitHub code in `fabro-github`, and deleting `fabro-linear`.\n\n## Dependency Direction Change\n\n**Current:** `fabro-github → fabro-tracker` (for trait re-export)\n**After:** `fabro-tracker → fabro-github` (for auth primitives: `GitHubAppCredentials`, `sign_app_jwt`, `create_installation_access_token_for_projects`)\n\n`fabro-github` no longer depends on `fabro-tracker`. No circular dependency.\n\n## Steps\n\n### 1. Update `lib/crates/fabro-tracker/Cargo.toml`\n\nAdd dependencies needed by both implementations:\n```toml\n[dependencies]\nfabro-github = { path = \"../fabro-github\" }\nasync-trait.workspace = true\nserde.workspace = true\nserde_json.workspace = true\nreqwest.workspace = true\ntracing.workspace = true\ntokio = { workspace = true }\n\n[dev-dependencies]\nmockito = \"1\"\ntokio = { workspace = true, features = [\"test-util\", \"macros\"] }\n```\n\n### 2. Update `lib/crates/fabro-github/Cargo.toml`\n\nRemove:\n- `fabro-tracker = { path = \"../fabro-tracker\" }`\n- `async-trait.workspace = true`\n\n### 3. Remove tracker code from `lib/crates/fabro-github/src/lib.rs`\n\nRemove these items (keep everything else):\n- `use async_trait::async_trait;` (line 1)\n- `use tokio::sync::OnceCell;` (line 3)\n- `pub use fabro_tracker::{BlockerRef, Issue, Tracker};` (line 5)\n- `execute_github_graphql()` fn (~line 796)\n- `GitHubTracker` struct, `impl GitHubTracker`, `impl Tracker for GitHubTracker` (~line 866-1315)\n- `normalize_github_item()` fn (~line 981)\n- `fetch_project_items_page()` fn (~line 1035)\n- All tracker-related tests (~line 2172-2841): `execute_github_graphql` tests, tracker helpers (`mock_github_tracker`, `make_test_issue`, etc.), and all `GitHubTracker` method tests\n\n**Keep** `create_installation_access_token_for_projects()` — it stays in fabro-github as a public function alongside the other `create_installation_access_token_*` variants.\n\n### 4. Create `lib/crates/fabro-tracker/src/linear.rs`\n\nAdapt `fabro-linear/src/lib.rs` code:\n- **Remove** the duplicate `Issue` and `BlockerRef` struct definitions — use `crate::Issue` and `crate::BlockerRef`\n- **Adapt** `normalize_issue()` to return `crate::Issue` with `project_item_id: None`\n- **Create** `LinearTracker` struct wrapping `LinearConfig`, `reqwest::Client`, and `project_slug: String`\n- **Implement** `Tracker for LinearTracker` by delegating to the existing functions\n- **Keep** private: `execute_graphql`, `normalize_issue`, `extract_issues`, `ISSUE_FIELDS`, `BLOCKS_RELATION_TYPE`\n- **Keep** public: `LinearConfig`, `LinearTracker`, `LINEAR_API_ENDPOINT`\n- **Move** all tests, updating assertions for the added `project_item_id` field\n\n### 5. Create `lib/crates/fabro-tracker/src/github.rs`\n\nMove tracker code from fabro-github:\n- Import from fabro-github: `GitHubAppCredentials`, `sign_app_jwt`, `create_installation_access_token_for_projects`\n- Contains: `GitHubTracker` struct + impls, `execute_github_graphql`, `normalize_github_item`, `fetch_project_items_page`\n- Uses `crate::Issue` and `crate::BlockerRef` (same types, just different import path)\n- Move all GitHubTracker tests (duplicate `test_rsa_key()` helper since test code isn't importable across crates)\n\n### 6. Update `lib/crates/fabro-tracker/src/lib.rs`\n\nAdd module declarations and re-exports:\n```rust\npub mod github;\npub mod linear;\n\npub use github::GitHubTracker;\npub use linear::{LinearConfig, LinearTracker, LINEAR_API_ENDPOINT};\n```\n\n### 7. Delete `lib/crates/fabro-linear/`\n\nRemove entire directory. Workspace glob `members = [\"lib/crates/*\"]` handles the rest.\n\n## Verification\n\n```bash\ncargo build --workspace\ncargo test --workspace\ncargo clippy --workspace -- -D warnings\ncargo fmt --check --all\n```\n\nKey things to verify:\n- No circular dependency (fabro-tracker → fabro-github, fabro-github has no fabro-tracker dep)\n- Linear `normalize_issue` sets `project_item_id: None`\n- All moved tests pass in their new home\n- `test_rsa_key()` helper is duplicated in fabro-tracker's github test module\n\n\n## Completed stages\n- **toolchain**: success\n - Script: `command -v cargo >/dev/null || { curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && sudo ln -sf $HOME/.cargo/bin/* /usr/local/bin/; }; cargo --version 2>&1`\n - Stdout:\n ```\n cargo 1.94.0 (85eff7c80 2026-01-15)\n ```\n - Stderr: (empty)\n", + "current.preamble": "Goal: # Plan: Merge fabro-linear and GitHub tracker into fabro-tracker\n\n## Context\n\nThe tracker ecosystem currently has three crates:\n- **fabro-tracker** — trait-only (57 lines): `Tracker` trait, `Issue`, `BlockerRef`\n- **fabro-linear** — standalone Linear functions that duplicate the `Issue`/`BlockerRef` types and don't implement the `Tracker` trait. Entirely unused.\n- **fabro-github** — mixed crate: GitHub App auth/PRs/branches (~70%) + `GitHubTracker` implementing `Tracker` (~30%). The `GitHubTracker` is also unused by consumers.\n\nGoal: consolidate both tracker implementations into `fabro-tracker`, keeping non-tracker GitHub code in `fabro-github`, and deleting `fabro-linear`.\n\n## Dependency Direction Change\n\n**Current:** `fabro-github → fabro-tracker` (for trait re-export)\n**After:** `fabro-tracker → fabro-github` (for auth primitives: `GitHubAppCredentials`, `sign_app_jwt`, `create_installation_access_token_for_projects`)\n\n`fabro-github` no longer depends on `fabro-tracker`. No circular dependency.\n\n## Steps\n\n### 1. Update `lib/crates/fabro-tracker/Cargo.toml`\n\nAdd dependencies needed by both implementations:\n```toml\n[dependencies]\nfabro-github = { path = \"../fabro-github\" }\nasync-trait.workspace = true\nserde.workspace = true\nserde_json.workspace = true\nreqwest.workspace = true\ntracing.workspace = true\ntokio = { workspace = true }\n\n[dev-dependencies]\nmockito = \"1\"\ntokio = { workspace = true, features = [\"test-util\", \"macros\"] }\n```\n\n### 2. Update `lib/crates/fabro-github/Cargo.toml`\n\nRemove:\n- `fabro-tracker = { path = \"../fabro-tracker\" }`\n- `async-trait.workspace = true`\n\n### 3. Remove tracker code from `lib/crates/fabro-github/src/lib.rs`\n\nRemove these items (keep everything else):\n- `use async_trait::async_trait;` (line 1)\n- `use tokio::sync::OnceCell;` (line 3)\n- `pub use fabro_tracker::{BlockerRef, Issue, Tracker};` (line 5)\n- `execute_github_graphql()` fn (~line 796)\n- `GitHubTracker` struct, `impl GitHubTracker`, `impl Tracker for GitHubTracker` (~line 866-1315)\n- `normalize_github_item()` fn (~line 981)\n- `fetch_project_items_page()` fn (~line 1035)\n- All tracker-related tests (~line 2172-2841): `execute_github_graphql` tests, tracker helpers (`mock_github_tracker`, `make_test_issue`, etc.), and all `GitHubTracker` method tests\n\n**Keep** `create_installation_access_token_for_projects()` — it stays in fabro-github as a public function alongside the other `create_installation_access_token_*` variants.\n\n### 4. Create `lib/crates/fabro-tracker/src/linear.rs`\n\nAdapt `fabro-linear/src/lib.rs` code:\n- **Remove** the duplicate `Issue` and `BlockerRef` struct definitions — use `crate::Issue` and `crate::BlockerRef`\n- **Adapt** `normalize_issue()` to return `crate::Issue` with `project_item_id: None`\n- **Create** `LinearTracker` struct wrapping `LinearConfig`, `reqwest::Client`, and `project_slug: String`\n- **Implement** `Tracker for LinearTracker` by delegating to the existing functions\n- **Keep** private: `execute_graphql`, `normalize_issue`, `extract_issues`, `ISSUE_FIELDS`, `BLOCKS_RELATION_TYPE`\n- **Keep** public: `LinearConfig`, `LinearTracker`, `LINEAR_API_ENDPOINT`\n- **Move** all tests, updating assertions for the added `project_item_id` field\n\n### 5. Create `lib/crates/fabro-tracker/src/github.rs`\n\nMove tracker code from fabro-github:\n- Import from fabro-github: `GitHubAppCredentials`, `sign_app_jwt`, `create_installation_access_token_for_projects`\n- Contains: `GitHubTracker` struct + impls, `execute_github_graphql`, `normalize_github_item`, `fetch_project_items_page`\n- Uses `crate::Issue` and `crate::BlockerRef` (same types, just different import path)\n- Move all GitHubTracker tests (duplicate `test_rsa_key()` helper since test code isn't importable across crates)\n\n### 6. Update `lib/crates/fabro-tracker/src/lib.rs`\n\nAdd module declarations and re-exports:\n```rust\npub mod github;\npub mod linear;\n\npub use github::GitHubTracker;\npub use linear::{LinearConfig, LinearTracker, LINEAR_API_ENDPOINT};\n```\n\n### 7. Delete `lib/crates/fabro-linear/`\n\nRemove entire directory. Workspace glob `members = [\"lib/crates/*\"]` handles the rest.\n\n## Verification\n\n```bash\ncargo build --workspace\ncargo test --workspace\ncargo clippy --workspace -- -D warnings\ncargo fmt --check --all\n```\n\nKey things to verify:\n- No circular dependency (fabro-tracker → fabro-github, fabro-github has no fabro-tracker dep)\n- Linear `normalize_issue` sets `project_item_id: None`\n- All moved tests pass in their new home\n- `test_rsa_key()` helper is duplicated in fabro-tracker's github test module\n\n\n## Completed stages\n- **toolchain**: success\n - Script: `command -v cargo >/dev/null || { curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && sudo ln -sf $HOME/.cargo/bin/* /usr/local/bin/; }; cargo --version 2>&1`\n - Stdout:\n ```\n cargo 1.94.0 (85eff7c80 2026-01-15)\n ```\n - Stderr: (empty)\n- **preflight_compile**: success\n - Script: `cargo check -q --workspace 2>&1`\n - Stdout: (empty)\n - Stderr: (empty)\n", "internal.retry_count.toolchain": 1, "graph.model_stylesheet": "\n * { backend: api; model: claude-opus-4-6;}\n ", "thread.toolchain.current_node": "preflight_compile", "outcome": "success", "internal.retry_count.preflight_compile": 1, + "internal.retry_count.preflight_lint": 1, "command.stderr": "", "graph.goal": "# Plan: Merge fabro-linear and GitHub tracker into fabro-tracker\n\n## Context\n\nThe tracker ecosystem currently has three crates:\n- **fabro-tracker** — trait-only (57 lines): `Tracker` trait, `Issue`, `BlockerRef`\n- **fabro-linear** — standalone Linear functions that duplicate the `Issue`/`BlockerRef` types and don't implement the `Tracker` trait. Entirely unused.\n- **fabro-github** — mixed crate: GitHub App auth/PRs/branches (~70%) + `GitHubTracker` implementing `Tracker` (~30%). The `GitHubTracker` is also unused by consumers.\n\nGoal: consolidate both tracker implementations into `fabro-tracker`, keeping non-tracker GitHub code in `fabro-github`, and deleting `fabro-linear`.\n\n## Dependency Direction Change\n\n**Current:** `fabro-github → fabro-tracker` (for trait re-export)\n**After:** `fabro-tracker → fabro-github` (for auth primitives: `GitHubAppCredentials`, `sign_app_jwt`, `create_installation_access_token_for_projects`)\n\n`fabro-github` no longer depends on `fabro-tracker`. No circular dependency.\n\n## Steps\n\n### 1. Update `lib/crates/fabro-tracker/Cargo.toml`\n\nAdd dependencies needed by both implementations:\n```toml\n[dependencies]\nfabro-github = { path = \"../fabro-github\" }\nasync-trait.workspace = true\nserde.workspace = true\nserde_json.workspace = true\nreqwest.workspace = true\ntracing.workspace = true\ntokio = { workspace = true }\n\n[dev-dependencies]\nmockito = \"1\"\ntokio = { workspace = true, features = [\"test-util\", \"macros\"] }\n```\n\n### 2. Update `lib/crates/fabro-github/Cargo.toml`\n\nRemove:\n- `fabro-tracker = { path = \"../fabro-tracker\" }`\n- `async-trait.workspace = true`\n\n### 3. Remove tracker code from `lib/crates/fabro-github/src/lib.rs`\n\nRemove these items (keep everything else):\n- `use async_trait::async_trait;` (line 1)\n- `use tokio::sync::OnceCell;` (line 3)\n- `pub use fabro_tracker::{BlockerRef, Issue, Tracker};` (line 5)\n- `execute_github_graphql()` fn (~line 796)\n- `GitHubTracker` struct, `impl GitHubTracker`, `impl Tracker for GitHubTracker` (~line 866-1315)\n- `normalize_github_item()` fn (~line 981)\n- `fetch_project_items_page()` fn (~line 1035)\n- All tracker-related tests (~line 2172-2841): `execute_github_graphql` tests, tracker helpers (`mock_github_tracker`, `make_test_issue`, etc.), and all `GitHubTracker` method tests\n\n**Keep** `create_installation_access_token_for_projects()` — it stays in fabro-github as a public function alongside the other `create_installation_access_token_*` variants.\n\n### 4. Create `lib/crates/fabro-tracker/src/linear.rs`\n\nAdapt `fabro-linear/src/lib.rs` code:\n- **Remove** the duplicate `Issue` and `BlockerRef` struct definitions — use `crate::Issue` and `crate::BlockerRef`\n- **Adapt** `normalize_issue()` to return `crate::Issue` with `project_item_id: None`\n- **Create** `LinearTracker` struct wrapping `LinearConfig`, `reqwest::Client`, and `project_slug: String`\n- **Implement** `Tracker for LinearTracker` by delegating to the existing functions\n- **Keep** private: `execute_graphql`, `normalize_issue`, `extract_issues`, `ISSUE_FIELDS`, `BLOCKS_RELATION_TYPE`\n- **Keep** public: `LinearConfig`, `LinearTracker`, `LINEAR_API_ENDPOINT`\n- **Move** all tests, updating assertions for the added `project_item_id` field\n\n### 5. Create `lib/crates/fabro-tracker/src/github.rs`\n\nMove tracker code from fabro-github:\n- Import from fabro-github: `GitHubAppCredentials`, `sign_app_jwt`, `create_installation_access_token_for_projects`\n- Contains: `GitHubTracker` struct + impls, `execute_github_graphql`, `normalize_github_item`, `fetch_project_items_page`\n- Uses `crate::Issue` and `crate::BlockerRef` (same types, just different import path)\n- Move all GitHubTracker tests (duplicate `test_rsa_key()` helper since test code isn't importable across crates)\n\n### 6. Update `lib/crates/fabro-tracker/src/lib.rs`\n\nAdd module declarations and re-exports:\n```rust\npub mod github;\npub mod linear;\n\npub use github::GitHubTracker;\npub use linear::{LinearConfig, LinearTracker, LINEAR_API_ENDPOINT};\n```\n\n### 7. Delete `lib/crates/fabro-linear/`\n\nRemove entire directory. Workspace glob `members = [\"lib/crates/*\"]` handles the rest.\n\n## Verification\n\n```bash\ncargo build --workspace\ncargo test --workspace\ncargo clippy --workspace -- -D warnings\ncargo fmt --check --all\n```\n\nKey things to verify:\n- No circular dependency (fabro-tracker → fabro-github, fabro-github has no fabro-tracker dep)\n- Linear `normalize_issue` sets `project_item_id: None`\n- All moved tests pass in their new home\n- `test_rsa_key()` helper is duplicated in fabro-tracker's github test module\n", "internal.node_visit_count": 1, + "thread.preflight_compile.current_node": "preflight_lint", "command.output": "", "internal.run_id": "01KM47FJJCP2B23W0MFSE9WVBX", "internal.retry_count.start": 1, "thread.start.current_node": "toolchain", - "internal.thread_id": "toolchain" + "internal.thread_id": "preflight_compile" }, "logs": [], "node_outcomes": { @@ -43,10 +47,6 @@ "notes": "Script completed: cargo check -q --workspace 2>&1", "duration_ms": 74610 }, - "start": { - "status": "success", - "duration_ms": 0 - }, "toolchain": { "status": "success", "context_updates": { @@ -55,12 +55,26 @@ }, "notes": "Script completed: command -v cargo >/dev/null || { curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && sudo ln -sf $HOME/.cargo/bin/* /usr/local/bin/; }; cargo --version 2>&1", "duration_ms": 116 + }, + "preflight_lint": { + "status": "success", + "context_updates": { + "command.output": "", + "command.stderr": "" + }, + "notes": "Script completed: cargo clippy -q --workspace -- -D warnings 2>&1", + "duration_ms": 12837 + }, + "start": { + "status": "success", + "duration_ms": 0 } }, - "next_node_id": "preflight_lint", + "next_node_id": "implement", "node_visits": { - "start": 1, "toolchain": 1, + "preflight_lint": 1, + "start": 1, "preflight_compile": 1 } } \ No newline at end of file diff --git a/nodes/preflight_lint/script_invocation.json b/nodes/preflight_lint/script_invocation.json new file mode 100644 index 000000000..d17d3d16d --- /dev/null +++ b/nodes/preflight_lint/script_invocation.json @@ -0,0 +1,5 @@ +{ + "command": "cargo clippy -q --workspace -- -D warnings 2>&1", + "language": "shell", + "timeout_ms": null +} \ No newline at end of file diff --git a/nodes/preflight_lint/script_timing.json b/nodes/preflight_lint/script_timing.json new file mode 100644 index 000000000..f210d78ac --- /dev/null +++ b/nodes/preflight_lint/script_timing.json @@ -0,0 +1,5 @@ +{ + "duration_ms": 12835, + "exit_code": 0, + "timed_out": false +} \ No newline at end of file diff --git a/nodes/preflight_lint/status.json b/nodes/preflight_lint/status.json new file mode 100644 index 000000000..1da293905 --- /dev/null +++ b/nodes/preflight_lint/status.json @@ -0,0 +1,6 @@ +{ + "status": "success", + "notes": "Script completed: cargo clippy -q --workspace -- -D warnings 2>&1", + "failure_reason": null, + "timestamp": "2026-03-19T23:41:02.348093+00:00" +} \ No newline at end of file