mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-26 09:25:55 +03:00
[PR #408] [MERGED] Add agent flat-file context store and wire into onboarding + SIF agents #714
Labels
No labels
AI Content Agents
AI Content Strategy
AI Content planning
AI Marketing Tools
AI SEO
AI personalization
AI writer
ALwrity Copi-lot
Alwrity web search
Anthropic
DeepSeek
Gemini AI
Integration
LLM
OnBoarding
OnBoarding
RAG knowledgebase Memory
bug
documentation
enhancement
good first issue
help wanted
invalid
openai
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ALwrity#714
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/AJaySi/ALwrity/pull/408
Author: @AJaySi
Created: 3/11/2026
Status: ✅ Merged
Merged: 3/12/2026
Merged by: @AJaySi
Base:
main← Head:codex/design-flat-file-context-system-for-ai-agents-goxbcd📝 Commits (1)
cbe41efAdd Step 5 flat context and txtai file tools for agents📊 Changes
13 files changed (+1480 additions, -7 deletions)
View changed files
📝
backend/api/onboarding_utils/step_management_service.py(+123 -0)➕
backend/services/intelligence/agent_flat_context.py(+528 -0)📝
backend/services/intelligence/sif_agents.py(+118 -6)📝
backend/services/intelligence/sif_integration.py(+280 -1)📝
docs/SIF/SIF_AGENTS_TEAM_ARCHITECTURE.md(+17 -0)➕
docs/flat_file_context/FLAT_FILE_CONTEXT_ENHANCEMENTS_BACKLOG.md(+69 -0)➕
docs/flat_file_context/FLAT_FILE_CONTEXT_FRAMEWORK_DESIGN.md(+140 -0)➕
docs/flat_file_context/FLAT_FILE_CONTEXT_PROGRESS_AND_QUICK_WINS.md(+26 -0)➕
docs/flat_file_context/FLAT_FILE_CONTEXT_SECURITY_AND_ISOLATION.md(+39 -0)➕
docs/flat_file_context/STEP2_FLAT_FILE_CONTEXT_DESIGN.md(+54 -0)➕
docs/flat_file_context/STEP3_FLAT_FILE_CONTEXT_DESIGN.md(+39 -0)➕
docs/flat_file_context/STEP4_FLAT_FILE_CONTEXT_DESIGN.md(+25 -0)➕
docs/flat_file_context/STEP5_FLAT_FILE_CONTEXT_DESIGN.md(+22 -0)📄 Description
Motivation
Description
AgentFlatContextStore(services/intelligence/agent_flat_context.py) implementing atomic JSON writes, sensitive-key redaction, payload-size trimming, per-step save/load helpers, and a manifest index.StepManagementServiceto save Step 2 (website analysis), Step 3 (research preferences), Step 4 (persona), and Step 5 (integrations) to the flat store.services/intelligence/sif_agents.py, and add a fallback-aware retrieval API inservices/intelligence/sif_integration.pyto fetch step context via flat file -> database -> semantic index.docs/flat_file_context/and a note in the SIF architecture docs describing the fast-context layer and retrieval order.Testing
pytestagainst modified modules and observed no regressions (all unit tests passed).StepManagementServicesave flows for steps 2–5 and validated flat files and manifest were created and readable (smoke tests succeeded).SIFIntegrationService.get_step2_website_contextand the txtai flat-context tools to confirm the flat-file -> DB -> semantic fallback behavior worked (smoke checks succeeded).Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.