nightshift/tests
K. Hodges fa97abf0c3 Implemented deterministic diff generation via a new file_writer stage.
What changed:

  - Added file_writer stage support in nightshift/config.py:93, nightshift/agents.py:446, and nightshift/pipeline.py:374.
  - Added file-block parsing and deterministic patch generation in nightshift/patches.py:65.
  - file_writer agents now return complete file blocks:

    ```file:relative/path.py
    <complete file content>
    ```
    NightShift reads current files and generates the unified diff itself.

  - Existing patch_validator, patch_normalizer, and patch_apply still run after that.
  - Switched tiny-lisp-nightshift/nightshift.yaml:51 to type: file_writer.
  - Updated tiny-lisp-nightshift/agents/implementer.md:1 to request file blocks instead of diffs.
  - Updated README, tutorial, config reference, and design doc.

  Also added tests for parsing file blocks, generating multi-file diffs, validating those diffs, and running a full file_writer -> normalize -> validate pipeline.

  Verification: python -m unittest discover -v passes, 101 tests.
2026-05-17 15:24:10 -07:00
..
__init__.py Implemented deterministic diff generation via a new file_writer stage. 2026-05-17 15:24:10 -07:00
test_agents.py The ollama backend now uses Ollama’s HTTP API instead of ollama run 2026-05-17 14:23:31 -07:00
test_artifacts.py Bugfixes from test run 2026-05-17 13:34:19 -07:00
test_commands.py Fix a windows bug for i/o from ollama 2026-05-17 02:04:59 -07:00
test_config.py Implemented deterministic diff generation via a new file_writer stage. 2026-05-17 15:24:10 -07:00
test_context.py Implement pipeline execution, context, reports, and MVP docs 2026-05-17 00:38:00 -07:00
test_git.py Fixes around test run 2 2026-05-17 13:46:26 -07:00
test_init.py Implement NightShift MVP phases 1-6 2026-05-17 00:17:13 -07:00
test_lisp.py Implemented deterministic diff generation via a new file_writer stage. 2026-05-17 15:24:10 -07:00
test_patches.py Implemented deterministic diff generation via a new file_writer stage. 2026-05-17 15:24:10 -07:00
test_pipeline.py Implemented deterministic diff generation via a new file_writer stage. 2026-05-17 15:24:10 -07:00
test_repo_tools.py Fixes around test run 2 2026-05-17 13:46:26 -07:00
test_reports.py Implement pipeline execution, context, reports, and MVP docs 2026-05-17 00:38:00 -07:00
test_safety.py Implement NightShift MVP phases 1-6 2026-05-17 00:17:13 -07:00
test_status.py Add status, git artifacts, task completion, multi-task runs, and dependency handling 2026-05-17 01:19:43 -07:00
test_tasks.py Add status, git artifacts, task completion, multi-task runs, and dependency handling 2026-05-17 01:19:43 -07:00
test_web.py Repo Lookup, Request Context, Planner, Context Stage, QoL improvements 2026-05-17 09:56:28 -07:00