[codex] Implement runtime memory alignment pipeline#5
Closed
Conversation
Contributor
Author
|
Superseded by #6, which merges the runtime memory work together with the integration refactor and the dev-branch follow-up fixes. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changed
This PR lands a broad runtime-memory alignment pass in OpenCompany.
It adds the new memory/runtime services and wiring for:
It also updates related agent/runtime jobs, provider gateways, config, docs, Lua docs, and tests, while removing obsolete planning/todo docs.
Why
OpenCompany has been moving toward the stronger runtime patterns already explored in KosmoKrator and prism-relay. This branch consolidates that work into product code and accompanying documentation so prompt construction, compaction, flushing, and tool-output handling are more explicit and easier to evolve.
Impact
Validation
Focused test execution was attempted with
vendor/bin/phpunitbecause the repo's Composer test script still points tophp artisan test, which is not available in this app.Failed checks:
vendor/bin/phpunit tests/Unit/PromptFrameBuilderTest.php tests/Unit/ToolResultDeduplicatorTest.php tests/Unit/OutputTruncatorTest.php tests/Unit/ContextPrunerTest.php tests/Unit/PrismMessagesTest.phpTests\\Unit\\PrismMessagesTest::test_from_laravel_messages_preserves_assistant_tool_calls_and_tool_resultsvendor/bin/phpunit tests/Feature/Services/Memory/ConversationCompactionServiceTest.php tests/Feature/Services/Memory/MemoryFlushServiceTest.php tests/Feature/Services/Memory/ModelContextRegistryTest.php tests/Feature/OpenCompanyAgentTest.phpIlluminate\\Support\\MultipleInstanceManagerresolution errors throughPromptableNotes
This PR is intentionally opened as draft because the current branch does not have a passing focused test baseline yet.