Step 663: sprint 40 integration summary
This commit is contained in:
@@ -4846,4 +4846,13 @@ target_link_libraries(step662_test PRIVATE
|
||||
tree_sitter_javascript tree_sitter_typescript
|
||||
tree_sitter_java tree_sitter_rust tree_sitter_go)
|
||||
|
||||
add_executable(step663_test tests/step663_test.cpp)
|
||||
target_include_directories(step663_test PRIVATE src)
|
||||
target_link_libraries(step663_test PRIVATE
|
||||
nlohmann_json::nlohmann_json
|
||||
unofficial::tree-sitter::tree-sitter
|
||||
tree_sitter_python tree_sitter_cpp tree_sitter_elisp
|
||||
tree_sitter_javascript tree_sitter_typescript
|
||||
tree_sitter_java tree_sitter_rust tree_sitter_go)
|
||||
|
||||
# Step 12: Dear ImGui shell scaffolding created (main.cpp exists but not built due to dependencies)
|
||||
|
||||
45
editor/src/Sprint40IntegrationSummary.h
Normal file
45
editor/src/Sprint40IntegrationSummary.h
Normal file
@@ -0,0 +1,45 @@
|
||||
#pragma once
|
||||
// Step 663: Sprint 40 integration + final summary
|
||||
|
||||
#include "CrossSessionContextBridge.h"
|
||||
#include "EnergyContextStatusModel.h"
|
||||
#include "EntropyScannerModel.h"
|
||||
#include "HiveMindJobPublisher.h"
|
||||
#include "InferenceJobGenerator.h"
|
||||
#include "Phase40aIntegration.h"
|
||||
#include "PilotQueuePanelModel.h"
|
||||
|
||||
struct Sprint40IntegrationResult {
|
||||
bool phase40aReady = false;
|
||||
bool entropyDetected = false;
|
||||
bool inferenceJobGenerated = false;
|
||||
bool pilotQueueReady = false;
|
||||
bool bridgeReady = false;
|
||||
bool finalSystemReady = false;
|
||||
};
|
||||
|
||||
class Sprint40IntegrationSummary {
|
||||
public:
|
||||
static Sprint40IntegrationResult run() {
|
||||
Sprint40IntegrationResult out;
|
||||
auto phase40a = Phase40aIntegration::run();
|
||||
out.phase40aReady = phase40a.integrationReady;
|
||||
|
||||
auto entropy = EntropyScannerModel::scan({"a()","a()"}, {"modA","modB"}, {"x"}, {});
|
||||
out.entropyDetected = EntropyScannerModel::shouldSuggestRefactor(entropy, 2);
|
||||
|
||||
auto inference = InferenceJobGenerator::generate("extract duplicates", EntropyScannerModel::entropyScore(entropy), {"a.cpp"});
|
||||
out.inferenceJobGenerated = inference.value("success", false);
|
||||
|
||||
PilotQueueItem item{"job-1", "review", true, 0.2};
|
||||
out.pilotQueueReady = PilotQueuePanelModel::needsHumanReview(item);
|
||||
|
||||
CrossSessionBridgeRequest req{"job-1", {"a.cpp"}, "/workspace"};
|
||||
auto bridge = CrossSessionContextBridge::run(req);
|
||||
out.bridgeReady = bridge.launchedMcp && bridge.intakeCalled && bridge.fedBackToEditor;
|
||||
|
||||
out.finalSystemReady = out.phase40aReady && out.entropyDetected && out.inferenceJobGenerated &&
|
||||
out.pilotQueueReady && out.bridgeReady;
|
||||
return out;
|
||||
}
|
||||
};
|
||||
20
editor/tests/step663_test.cpp
Normal file
20
editor/tests/step663_test.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
// Step 663: Sprint 40 integration + final summary (8 tests)
|
||||
|
||||
#include "Sprint40IntegrationSummary.h"
|
||||
#include <iostream>
|
||||
static int p=0,f=0;
|
||||
#define T(n) { std::cout<<" "<<#n<<"... "; }
|
||||
#define P() { std::cout<<"PASS\n"; ++p; }
|
||||
#define F(m) { std::cout<<"FAIL: "<<m<<"\n"; ++f; }
|
||||
#define C(c,m) if(!(c)){F(m);return;}
|
||||
|
||||
void t1(){T(phase40a_ready);auto r=Sprint40IntegrationSummary::run();C(r.phase40aReady,"40a");P();}
|
||||
void t2(){T(entropy_detected);auto r=Sprint40IntegrationSummary::run();C(r.entropyDetected,"entropy");P();}
|
||||
void t3(){T(inference_job_generated);auto r=Sprint40IntegrationSummary::run();C(r.inferenceJobGenerated,"job");P();}
|
||||
void t4(){T(pilot_queue_ready);auto r=Sprint40IntegrationSummary::run();C(r.pilotQueueReady,"pilot");P();}
|
||||
void t5(){T(bridge_ready);auto r=Sprint40IntegrationSummary::run();C(r.bridgeReady,"bridge");P();}
|
||||
void t6(){T(final_system_ready);auto r=Sprint40IntegrationSummary::run();C(r.finalSystemReady,"final");P();}
|
||||
void t7(){T(final_requires_all_components);auto r=Sprint40IntegrationSummary::run();C(r.phase40aReady&&r.entropyDetected&&r.inferenceJobGenerated&&r.pilotQueueReady&&r.bridgeReady,"deps");P();}
|
||||
void t8(){T(summary_deterministic);auto a=Sprint40IntegrationSummary::run();auto b=Sprint40IntegrationSummary::run();C(a.finalSystemReady==b.finalSystemReady,"deterministic");P();}
|
||||
|
||||
int main(){std::cout<<"Step 663: Sprint 40 integration summary\n";t1();t2();t3();t4();t5();t6();t7();t8();std::cout<<"\nResults: "<<p<<"/"<<(p+f)<<" passed\n";return f?1:0;}
|
||||
60
progress.md
60
progress.md
@@ -13673,3 +13673,63 @@ intake and feedback return into the originating editor session.
|
||||
- `editor/src/CrossSessionContextBridge.h` (`29` <= `600`)
|
||||
- `editor/tests/step662_test.cpp` within test-file size guidance (`26` lines)
|
||||
- Header-only architecture and naming conventions remain aligned with `ARCHITECTURE.md`
|
||||
|
||||
### Step 663: Sprint 40 Integration + Final Summary
|
||||
**Status:** PASS (8/8 tests)
|
||||
|
||||
Adds Sprint 40 integration summary composition across Phase 40a readiness,
|
||||
entropy detection, inference-job generation, pilot-queue review gating, and
|
||||
cross-session bridge completion.
|
||||
|
||||
**Files added:**
|
||||
- `editor/src/Sprint40IntegrationSummary.h` - sprint integration runner
|
||||
- `editor/tests/step663_test.cpp` - 8 tests for final readiness signals
|
||||
|
||||
**Files modified:**
|
||||
- `editor/CMakeLists.txt` - `step663_test` target
|
||||
|
||||
**Verification run:**
|
||||
- `cmake -S editor -B editor/build-native` - PASS
|
||||
- `cmake --build editor/build-native --target step663_test step662_test` - PASS
|
||||
- `./editor/build-native/step663_test` - PASS (8/8)
|
||||
- `./editor/build-native/step662_test` - PASS (12/12) regression coverage
|
||||
|
||||
**Architecture gate check:**
|
||||
- `editor/src/Sprint40IntegrationSummary.h` (`45` <= `600`)
|
||||
- `editor/tests/step663_test.cpp` within test-file size guidance (`20` lines)
|
||||
- Header-only architecture and naming conventions remain aligned with `ARCHITECTURE.md`
|
||||
|
||||
## Sprint 40 Refactor Pass (Architecture Compliance)
|
||||
**Status:** PASS
|
||||
|
||||
Completed end-of-sprint modified-files audit for Steps 654-663.
|
||||
No additional refactor was required; Sprint 40 modules were already compliant
|
||||
with architecture constraints.
|
||||
|
||||
**Verification run (full sprint matrix):**
|
||||
- `cmake --build editor/build-native --target step654_test step655_test step656_test step657_test step658_test step659_test step660_test step661_test step662_test step663_test` - PASS
|
||||
- `./editor/build-native/step654_test` - PASS (12/12)
|
||||
- `./editor/build-native/step655_test` - PASS (12/12)
|
||||
- `./editor/build-native/step656_test` - PASS (12/12)
|
||||
- `./editor/build-native/step657_test` - PASS (12/12)
|
||||
- `./editor/build-native/step658_test` - PASS (8/8)
|
||||
- `./editor/build-native/step659_test` - PASS (12/12)
|
||||
- `./editor/build-native/step660_test` - PASS (12/12)
|
||||
- `./editor/build-native/step661_test` - PASS (12/12)
|
||||
- `./editor/build-native/step662_test` - PASS (12/12)
|
||||
- `./editor/build-native/step663_test` - PASS (8/8)
|
||||
- Sprint 40 matrix total: **112/112 passing**
|
||||
|
||||
**Architecture gate check:**
|
||||
- `editor/src/HiveMindJobPublisher.h` (`29` <= `600`)
|
||||
- `editor/src/SwarmStatusPanelModel.h` (`46` <= `600`)
|
||||
- `editor/src/ApiaryBrowserPanelModel.h` (`36` <= `600`)
|
||||
- `editor/src/EnergyContextStatusModel.h` (`28` <= `600`)
|
||||
- `editor/src/Phase40aIntegration.h` (`38` <= `600`)
|
||||
- `editor/src/EntropyScannerModel.h` (`65` <= `600`)
|
||||
- `editor/src/InferenceJobGenerator.h` (`32` <= `600`)
|
||||
- `editor/src/PilotQueuePanelModel.h` (`39` <= `600`)
|
||||
- `editor/src/CrossSessionContextBridge.h` (`29` <= `600`)
|
||||
- `editor/src/Sprint40IntegrationSummary.h` (`45` <= `600`)
|
||||
- Sprint 40 test files remain within test-file size guidance.
|
||||
- Header-only architecture and naming conventions remain aligned with `ARCHITECTURE.md`
|
||||
|
||||
Reference in New Issue
Block a user