Skip to content

feat(graph+supervisor): layout dependency edges and graph-backed dependencies in validate_code#68

Open
fklosowski wants to merge 16 commits into
masterfrom
supervisor-graph-integration
Open

feat(graph+supervisor): layout dependency edges and graph-backed dependencies in validate_code#68
fklosowski wants to merge 16 commits into
masterfrom
supervisor-graph-integration

Conversation

@fklosowski

Copy link
Copy Markdown
Contributor

No description provided.

…re adapter

- Re-export `getPosition` utility for reuse in sibling modules.
- Update `assembleResult` to accept and handle dependencies.
- Implement `runStructure` to resolve outgoing dependencies using platformos-graph.
- Add integration tests for dependency mapping in structure adapter.
- Ensure linting and dependency resolution run concurrently in `validate_code`.
@fklosowski fklosowski changed the title Add layout support and associated tests in DocumentsLocator and graph… feat(graph+supervisor): layout dependency edges and graph-backed dependencies in validate_code Jun 29, 2026
…from GraphQL queries

- Implemented extractGraphqlTable function to extract platformOS model table names from GraphQL operations.
- Added unit tests for extractGraphqlTable covering various scenarios including shorthand and nested table filters.
- Introduced GraphQL table extraction in the build process for schema modules.
- Enhanced AppGraph and AppModule types to include schema and table properties.
- Created fixtures for testing GraphQL queries with and without table filters.
- Updated traversal logic to handle schema nodes and their associated table names.
- Updated index.ts to export `extractStructural` alongside `extractFileReferences`.
- Introduced `GraphBuildOptions` in types.ts to control structural fact inclusion during builds.
- Created adapter-input.ts to standardize input for lint and structure adapters.
- Refactored lint.ts to utilize the new AdapterInput interface.
- Enhanced assembleResult to include structural snapshots in the result.
- Updated structure.ts to derive both dependencies and structural data from the same parse.
- Added tests for validate-code to ensure lint and structure orchestration works as expected.
- Improved error handling in validate-code to log structure resolution failures without dropping lint diagnostics.
- Updated DocumentsLocator to support canonical asset paths for both app and module assets.
- Added tests to verify asset resolution under app/assets and module public/assets.
- Introduced new asset edge handling in graph traversal and query logic.
- Refactored asset module retrieval to use resolved URIs directly.
- Improved integration tests to reflect changes in asset path resolution.
- Removed the `ValidateCodeDependency` and `ValidateCodeStructuralSnapshot` types and their associated logic.
- Introduced `ValidateCodeImpact` type to represent cross-file blast radius.
- Updated `assembleResult` function to accept and process impact data instead of dependencies and structural snapshots.
- Modified `runStructure` to be removed, and its functionality replaced with impact analysis.
- Adjusted `runValidateCode` to orchestrate linting and impact analysis, ensuring lint failures take precedence.
- Updated tests to reflect changes in the impact analysis and ensure correct behavior.
- Removed obsolete structure tests and integrated impact tests into the validation flow.
- Add `deserializeAppGraph` function to reconstruct an in-memory AppGraph from its serialized form, ensuring round-trip identity and incremental readiness.
- Introduce unit tests for `deserializeAppGraph` to validate serialization and deserialization processes, including edge cases for dangling edges and entry points.
- Create a new module for graph cache persistence, including encoding and decoding cache files with versioning to handle corrupt or incompatible caches.
- Enhance `GraphCache` to support loading from a persisted cache on cold starts, allowing for faster initialization and incremental updates.
- Update server initialization to utilize the new cache path for improved performance and reliability.
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