This file tracks the pinned upstream commit, the vendored file list, and the schema-compat status. Update on every "rebase vendored files" pass.
- Project: codejunkie99/agentic-stack
- URL: https://github.com/codejunkie99/agentic-stack
- Tag: v0.11.2
- Commit SHA:
df806abace1a693e042844bf4ac0cccf9bb6270a - Pinned on: 2026-04-26
- Last rebase: 2026-04-26 (initial vendoring)
Source path on left, our path on right. Modifications listed where they exist.
| Upstream | Our path | Modifications |
|---|---|---|
.agent/memory/auto_dream.py |
agent/memory/auto_dream.py |
v0.1.1: _episodic_locked switched from data-file flock to sentinel-file flock; _write_entries_locked uses atomic write helper. (Closes the lock-inversion data loss when os.replace swaps the data inode.) |
.agent/memory/cluster.py |
agent/memory/cluster.py |
none |
.agent/memory/promote.py |
agent/memory/promote.py |
v0.1.1: write_candidates uses atomic_write_json instead of in-place open(w). |
.agent/memory/validate.py |
agent/memory/validate.py |
none |
.agent/memory/review_state.py |
agent/memory/review_state.py |
v0.1.1: save_candidate and write_review_queue_summary use atomic write helpers. |
.agent/memory/render_lessons.py |
agent/memory/render_lessons.py |
modified: _bullet_for extended for optional why/how_to_apply fields |
.agent/memory/decay.py |
agent/memory/decay.py |
none |
.agent/memory/archive.py |
agent/memory/archive.py |
none |
.agent/tools/graduate.py |
agent/tools/graduate.py |
trust workstream: human-decision gate. Default reviewer (host-agent) + no TTY on stdin now requires --non-interactive-ack (caller asserts a human approved the promotion); otherwise exits 4 with an actionable message. Interactive runs unchanged. |
.agent/tools/reject.py |
agent/tools/reject.py |
none |
.agent/tools/reopen.py |
agent/tools/reopen.py |
none |
.agent/tools/list_candidates.py |
agent/tools/list_candidates.py |
none |
.agent/tools/data_layer_export.py |
agent/tools/data_layer_export.py |
none — full vendor (presentation rewrite deferred to v0.2 if needed) |
.agent/harness/hooks/claude_code_post_tool.py |
agent/harness/hooks/claude_code_post_tool.py |
v0.1.1: added from __future__ import annotations so the upstream's PEP 604 (X | Y) annotations don't crash callers on Python 3.9. |
.agent/harness/hooks/_episodic_io.py |
agent/harness/hooks/_episodic_io.py |
v0.1.1: lock identity moved to a sentinel sibling <jsonl>.lock (was data file directly). Wraps OSError on read-only files. |
.agent/harness/hooks/_provenance.py |
agent/harness/hooks/_provenance.py |
none |
.agent/harness/hooks/on_failure.py |
agent/harness/hooks/on_failure.py |
none |
.agent/harness/hooks/post_execution.py |
agent/harness/hooks/post_execution.py |
none |
.agent/harness/salience.py |
agent/harness/salience.py |
none |
.agent/harness/text.py |
agent/harness/text.py |
none |
These should be excluded from any upstream-rebase since they don't have upstream counterparts:
| File | Purpose |
|---|---|
agent/memory/_atomic.py |
Atomic write helper (temp + fsync + os.replace) |
agent/tools/redact.py |
Pre-commit secret scanner |
agent/tools/redact_jsonl.py |
Sync-time JSONL secret scrubber |
agent/tools/sync.sh |
Hourly git-sync script with required scanner |
agent/tools/dream_runner.py |
fcntl-based launchd entry point for dream cycle |
agent/tools/migrate.py |
One-shot flat-memory → structured-memory migration |
agent/harness/hooks/agentic_post_tool_global.py |
Global wrapper that resolves BRAIN_ROOT, validates path, and dispatches to upstream's claude_code_post_tool.py |
templates/brain-secret-scan.yml |
Server-side scanning GitHub Action template |
| Schema | Status | Test |
|---|---|---|
| lessons.jsonl | ✅ extended (backward compatible) | tests/test_schema_compat.py::test_lessons_schema_extension |
| candidates JSON | ✅ unchanged | tests/test_schema_compat.py::test_candidates_unchanged |
episodic JSONL (AGENT_LEARNINGS.jsonl) |
✅ unchanged | tests/test_schema_compat.py::test_episodic_unchanged |
data-layer schemas (schemas/data-layer/*.json) |
✅ vendored verbatim | n/a |
- Fetch upstream:
cd /tmp/agentic-stack && git fetch && git checkout <new-tag> - Diff every vendored file:
for f in tools/auto_dream.py tools/cluster.py ...; do diff <(cat /tmp/agentic-stack/<upstream-path>) <our-path>; done - Re-apply our modifications (currently only
render_lessons.py::_bullet_forextension) - Run
pytest tests/test_schema_compat.pyagainst new golden fixtures - If any test fails: investigate schema drift; either adapt our migrations or pin to the previous tag
- Update this file: bump
Pinned on,Last rebase,Tag,Commit SHA, modifications column - Commit:
chore(upstream): rebase vendored files to <new-tag>