Skip to content

feat: harden the context compilation pipeline - #6

Merged
NoraSoong merged 9 commits into
mainfrom
codex/context-reliability
Aug 11, 2026
Merged

NoraSoong merged 9 commits into
mainfrom
codex/context-reliability

Conversation

@NoraSoong

Copy link
Copy Markdown
Owner

Summary

This PR strengthens Nexus's core context lifecycle without expanding its product scope.

  • Add bounded, streaming material reads with UTF-8/UTF-16 support
  • Enforce a 64 MiB safety limit and preserve head/tail excerpts for truncated files
  • Stream MCP material pagination instead of loading whole files
  • Retry once with a compacting prompt when model output is truncated
  • Preserve answered clarification questions across re-preparation
  • Simplify context preparation UI and keep internal details out of the default flow
  • Split context pack persistence, workspace bindings, and projection publishing internally
  • Align pre-alpha repository metadata and documentation with actual behavior

Validation

  • swift format lint --recursive Sources Tests
  • swift test — 81 tests passed
  • npm run build
  • npm run verify:stdio
  • npm run verify:bindings
  • npm run verify:file-policy
  • npm run verify:context-payload
  • npm audit --audit-level=high

Notes

This PR does not add code indexing, agent execution, automatic Git operations, or new task-management features.

A local Context Pack quality check confirmed source-backed claims and strong compression. The planned three-work model comparison remains pending because the external model test could not run in the current environment.

@NoraSoong
NoraSoong merged commit 6862f55 into main Aug 11, 2026
2 checks passed
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