mirror of
https://github.com/khodges42/nightShift.git
synced 2026-06-14 18:18:36 +00:00
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.
1.5 KiB
1.5 KiB
Implementation Summary
Stage: implement
Status: pass
Repair attempt: 2
Patch: .nightshift/runs/20260517T212359.709956Z/tasks/TASK-001/repair-2.patch
Retry Feedback
- Context update from 'implement': Implementation summary: .nightshift/runs/20260517T212359.709956Z/tasks/TASK-001/implementation-summary.md
- Retry 1: stage 'validate_patch' returned fail (Patch validation failed: patch creates existing file
lisp.py.); redirecting to 'implement'. - Context update from 'implement': Implementation summary: .nightshift/runs/20260517T212359.709956Z/tasks/TASK-001/repair-summary-1.md
- Context update from 'apply_patch': C:/Users/metis/Documents/tiny-lisp-nightshift/.nightshift/runs/20260517T212359.709956Z/tasks/TASK-001/applied-1.patch:6: trailing whitespace. import re C:/Users/metis/Documents/tiny-lisp-nightshift/.nightshift/runs/20260517T212359.709956Z/tasks/TASK-001/applied-1.patch:7: trailing whitespace.
C:/Users/metis/Documents/tiny-lisp-nightshift/.nightshift/runs/20260517T212359.709956Z/tasks/TASK-001/applied-1.patch:8: trailing whitespace. class LispParser: C:/Users/metis/Documents/tiny-lisp-nightshift/.nightshift/runs/20260517T212359.709956Z/tasks/TASK-001/applied-1.patch:9: trailing whitespace. def init(self, expression): C:/Users/metis/Documents/tiny-lisp-nightshift/.nightshift/runs/20260517T212359.709956Z/tasks/TASK-001/applied-1.patch:10: trailing whitespace. self.expression = expression error: corrupt patch at line 48
- Retry 2: stage 'apply_patch' returned fail (Patch apply failed with code 128.); redirecting to 'implement'.