Jinal-Sarvaiya opened a new pull request, #206:
URL: https://github.com/apache/camel-kit/pull/206
## Summary
Fixes #114 by adding Iron Law 7 to ensure agents write deliverables directly
into the project directory from the first edit, preventing work loss when
sessions end prematurely.
## Problem
AI agents that prefer to "verify empirically first" were building complete
applications in scratch directories (e.g., `/tmp/opencode/`) and copying them
to the project only at the end. When sessions ended due to timeout, token
limits, or crashes, all work was lost because nothing was written to the actual
project.
Evidence from camel-evals showed 2 out of 3 trials with GLM 5.3 built
complete routes under `/tmp/opencode/` and ran out of time before copying to
`camel/`, resulting in scores of 0.22-0.27 versus 0.83-0.92 for other trials.
## Changes
### Core Skills & Templates
1. **Added Iron Law 7** to `skills/shared/iron-laws.md`:
- Requires all deliverables (routes, config, POMs, Java files, tests,
Docker Compose) be written to project directory from first edit
- Explicitly lists what counts as deliverable vs. throwaway
- Documents the environment probe exception
- Includes gate function for classification
2. **Updated `templates/shared/agents-md.md`**:
- Added law #6 in "Laws (NEVER violate)" section referencing Iron Law 7
- Points to environment probe exception
3. **Updated `camel-execute/guides/implementer-context.md`**:
- Added Iron Law 7 reference in the implementer reminder section
4. **Updated `CLAUDE.md`**:
- Changed from 6 to 7 iron laws
### Documentation (Website Impact)
5. **Updated `docs/modules/ROOT/pages/pipeline.adoc`**:
- Updated Iron Laws section from "Six rules" to "Seven rules"
- Added Iron Law 7 with full explanation
6. **Updated `docs/modules/ROOT/pages/camel-execute.adoc`**:
- Added clarification in Environment probe section about the temp
directory exception
- Explicitly references Iron Law 7
## Testing
- [x] All tests pass: `./mvnw -pl kit/camel-kit-core test -B`
- [x] ShippedAssetStructureTest passes
- [x] No formatting issues
## Verification
After these changes, the generated `AGENTS.md` in initialized projects will
include the deliverables-in-project rule, preventing agents from using scratch
directories for implementation artifacts.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]