Skip to content
Closed
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Summit Sprint 25+ Strategic Work — Next Priority Prompt

You are an autonomous agent assigned to Sprint 25+ for the BrianCLong/summit platform. The current system consists of:

- Full stack enterprise platform (React UI, Node/Express + GraphQL backend, Neo4j/PostgreSQL/TimescaleDB, Redis)
- Background orchestration with Maestro
- Golden Path CI (lint, smoke, quality gates)
Expand All @@ -12,24 +11,20 @@ Your mission this sprint is to concretely deliver the following prioritized work
## Deliverables

### 1. **Provenance & Lineage System**

- Extend the data model to capture **full data/AI provenance** for ingested telemetry, AI inferences, and analytic outputs.
- Implement an **immutable event log** (append-only) in TimescaleDB + Neo4j for traceability.
- Provide API endpoints and UI components to visualize provenance graphs centered on entity lifecycle.

### 2. **Predictive Analytics Module**

- Define schema and ingestion pipeline for predictive telemetry features (time series, anomaly scores, forecasting).
- Build a service module for **forecasting outcomes** (e.g., suspicious activity, entity risk score) using modular plug-in ML models with versioned metadata.
- Expose GraphQL queries tailored for predictive analytics and integrate them into the React UI dashboards.

### 3. **Agent-Driven Test Data Generator**

- Create a modular generator service that produces **realistic synthetic data** for key Summit domains (entities, events, metrics).
- Ensure generated data exercises **edge cases** and triggers CI test coverage across backend, API, and analytics layers.

### 4. **Governance & Policy Automation**

- Encode governance rules in machine-readable policies (e.g., Open Policy Agent) for:
• Data access
• CI pipeline enforcement
Expand All @@ -38,25 +33,21 @@ Your mission this sprint is to concretely deliver the following prioritized work
- Implement automated enforcement and reporting hooks tied into the Golden Path CI.

### 5. **Golden Path CI Enhancements**

- Expand automated quality gates with:
• Security scanning for new dependencies
• ML model evaluation benchmarks
• Provenance completeness validation
- Update CI workflows with policy checks and automated rollback triggers on failure.

## Requirements & Constraints

- All deliverables must pass the Golden Path (`make smoke`) end-to-end test.
- Updates must include unit, integration, and governance policy tests.
- Deliverables must include **schema migration plans** and performance considerations.
- All APIs must be documented with schema and usage examples.
- Agent prompts and workflows must be captured in versioned prompt files under `.agentic-prompts/`.

## Outputs

For each deliverable:

1. A clear **task list** broken down into atomic work units (ready for sprint planning).
2. Proposed **APIs / schemas / UI designs** draft (Markdown + JSON/YAML).
3. **Testing blueprint** covering edge cases and golden path criteria.
Expand All @@ -65,5 +56,4 @@ For each deliverable:
Start with a concise summary of design decisions (architecture, data flow, governance alignment) and then produce structured work items ready for PRs.

---

**Status**: Executed. Plan generated in `docs/sprints/sprint_25_plan.md`.
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,28 @@ Resolve all Jest ESM/CommonJS configuration mismatches for 100% passing tests.
## ✅ REQUIREMENTS

### 1. Create TypeScript Test Configuration

- [ ] Create `tsconfig.test.json` with CommonJS module settings
- [ ] Set `module: "commonjs"` for Jest compatibility
- [ ] Extend from base `tsconfig.json`
- [ ] Configure paths for test files

### 2. Update Jest Configuration

- [ ] Modify `jest.config.ts` to use `tsconfig.test.json`
- [ ] Configure proper ESM transform settings
- [ ] Remove `transformIgnorePatterns` warnings
- [ ] Enable correct preset for TypeScript + ESM

### 3. Fix Mock Implementations

- [ ] Fix `server/tests/mcp-client.test.ts` mock types
- [ ] Ensure mock return values match expected types
- [ ] Update all test files with `import.meta` errors

### 4. Update CI Workflow

- [ ] Modify `.github/workflows/ci-main.yml` to use test config
- [ ] Add explicit `--project tsconfig.test.json` flag
- [ ] Verify CI uses correct configuration

### 5. Validate All 510 Test Files

- [ ] Run full test suite: `pnpm test`
- [ ] Ensure zero failures
- [ ] Verify no ESM/CommonJS warnings
Expand All @@ -52,13 +47,11 @@ Resolve all Jest ESM/CommonJS configuration mismatches for 100% passing tests.
## 📦 OUTPUT FILES

### New Files

```
tsconfig.test.json
```

### Modified Files

```
jest.config.ts
server/tests/mcp-client.test.ts
Expand All @@ -71,7 +64,6 @@ package.json (if test scripts need updates)
## 🧪 VALIDATION CRITERIA

### Must All Pass:

```bash
pnpm test # ✅ 0 failures, all tests passing
pnpm typecheck # ✅ 0 errors
Expand All @@ -80,7 +72,6 @@ pnpm build # ✅ Success
```

### Specific Checks:

- ✅ No "import.meta not allowed" errors
- ✅ No mock implementation type errors
- ✅ No transformIgnorePatterns warnings
Expand All @@ -103,30 +94,39 @@ pnpm build # ✅ Success
"resolveJsonModule": true,
"types": ["jest", "node"]
},
"include": ["**/*.test.ts", "**/*.test.tsx", "**/*.spec.ts", "**/*.spec.tsx"]
"include": [
"**/*.test.ts",
"**/*.test.tsx",
"**/*.spec.ts",
"**/*.spec.tsx"
]
}
```

### Step 2: Update `jest.config.ts`

```typescript
import type { Config } from "jest";
import type { Config } from 'jest';

const config: Config = {
preset: "ts-jest",
testEnvironment: "node",
roots: ["<rootDir>/server", "<rootDir>/packages"],
testMatch: ["**/*.test.ts", "**/*.spec.ts"],
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/server', '<rootDir>/packages'],
testMatch: ['**/*.test.ts', '**/*.spec.ts'],
globals: {
"ts-jest": {
tsconfig: "tsconfig.test.json",
'ts-jest': {
tsconfig: 'tsconfig.test.json',
useESM: false,
},
},
moduleNameMapper: {
"^@/(.*)$": "<rootDir>/server/src/$1",
'^@/(.*)$': '<rootDir>/server/src/$1',
},
collectCoverageFrom: ["server/src/**/*.ts", "!server/src/**/*.d.ts", "!server/src/**/*.test.ts"],
collectCoverageFrom: [
'server/src/**/*.ts',
'!server/src/**/*.d.ts',
'!server/src/**/*.test.ts',
],
coverageThreshold: {
global: {
branches: 70,
Expand All @@ -149,11 +149,11 @@ const mockClient = {
};

// After (fixed with correct types):
import { McpClient } from "../types";
import { McpClient } from '../types';

const mockClient: jest.Mocked<Pick<McpClient, "request">> = {
const mockClient: jest.Mocked<Pick<McpClient, 'request'>> = {
request: jest.fn().mockResolvedValue({
result: {} as Record<string, unknown>,
result: {} as Record<string, unknown>
}),
};
```
Expand Down Expand Up @@ -183,7 +183,6 @@ const mockClient: jest.Mocked<Pick<McpClient, "request">> = {
## 🚀 EXECUTION STEPS

1. **Create branch:**

```bash
git checkout main
git pull origin main
Expand All @@ -197,7 +196,6 @@ const mockClient: jest.Mocked<Pick<McpClient, "request">> = {
- Update CI workflow

3. **Validate locally:**

```bash
pnpm typecheck # Must pass
pnpm lint # Must pass
Expand All @@ -206,7 +204,6 @@ const mockClient: jest.Mocked<Pick<McpClient, "request">> = {
```

4. **Commit and push:**

```bash
git add .
git commit -m "🤖 Fix #11847: Resolve Jest ESM configuration
Expand All @@ -233,7 +230,6 @@ const mockClient: jest.Mocked<Pick<McpClient, "request">> = {
gh pr create \
--title "Fix #11847: Resolve Jest ESM configuration issues" \
--body "## 🎯 Task Completion Report
```

**Issue:** Closes #11847
**Priority:** 1 (BLOCKING)
Expand Down Expand Up @@ -261,16 +257,15 @@ const mockClient: jest.Mocked<Pick<McpClient, "request">> = {
\`\`\`bash
$ pnpm test
Test Suites: 510 passed, 510 total
Tests: 2,847 passed, 2,847 total
Snapshots: 0 total
Time: 47.123 s
Tests: 2,847 passed, 2,847 total
Snapshots: 0 total
Time: 47.123 s
\`\`\`

🤖 **This PR was generated by agentic automation**" \
--assignee @me \
--label "agentic-execution,ready-for-review,priority-1"

```
--assignee @me \
--label "agentic-execution,ready-for-review,priority-1"
```

6. **Monitor CI and merge when green**

Expand Down Expand Up @@ -300,4 +295,3 @@ Time: 47.123 s
---

**BEGIN IMPLEMENTATION NOW**
```
2 changes: 2 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# actionlint configuration
# https://github.com/rhysd/actionlint/blob/main/usage.md#config-file

self-hosted-runner: true

rules:
# Enforce action pinning by SHA
# This requires custom check or using a plugin if actionlint supports it directly.
Expand Down
40 changes: 0 additions & 40 deletions .github/ci-cost-policy.yml

This file was deleted.

Loading