lior shadow log 2026 05 24 branch#4847
Conversation
AceHack
commented
May 24, 2026
- docs(shadow): add shadow lesson log for metadata churn paralysis (docs(shadow): add shadow lesson log for metadata churn paralysis #4798)
- docs(shadow): Lior logs stale git locks
- docs(archive): preserve recently merged PRs
- docs(shadow): add lesson log for blob PR feat(persona): DECOMPOSED - add new persona conversation artifacts (from #4696) #4727 and sensitive data
- docs(research): add shadow lesson log for 2026-05-24
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 143572cc49
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "chat", | ||
| "--mode", "ask", | ||
| "--model", "grok-4.3", |
There was a problem hiding this comment.
Re-enable write-capable non-interactive agent execution
This change switches the launchd gate from cursor-agent -p with explicit pickup/drain tasking to agent chat --mode ask, which is read-only and no longer executes the backlog/PR-drain workflow; as a result, when ZETA_RIVEN_LOOP_RUN_AGENT=1, the loop can no longer perform the previously automated fixes (e.g., resolving blocked PR review feedback) and will only emit planning text. Cursor’s CLI docs describe Ask as read-only and reserve scripted non-interactive automation for print mode, so this effectively stalls the autonomous remediation path under normal open-PR conditions.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Pull request overview
This PR adds several shadow/research lesson-log entries for late-May 2026 incidents (git locks, metadata churn paralysis, blob PRs + sensitive-data policy breaches), preserves a batch of recently merged PR discussions under docs/pr-discussions/, and updates the Cursor Riven loop tick to use the agent CLI gate invocation.
Changes:
- Add new shadow lesson logs under
docs/research/for stale locks, blob PR + sensitive data incidents, and dirty-worktree paralysis. - Archive a set of recently merged PR bodies/review threads into
docs/pr-discussions/(verbatim-preservation surface). - Update
.cursor/bin/riven-loop-tick.tsto replacecursor-agentwork-cycle prompting with anagent chat --mode ask“agent gate” invocation.
Reviewed changes
Copilot reviewed 35 out of 36 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/research/shadow-lesson-log-20260522-stale-locks.md | New shadow lesson log about stale git/worktree locks. |
| docs/research/shadow-lesson-log-2026-05-24-blob-and-sensitive-data.md | New shadow lesson log documenting blob PR + sensitive data incident (#4727). |
| docs/research/shadow-lesson-log-2026-05-24-blob-and-sensitive-data-2.md | Second shadow lesson log documenting similar incident (#4730). |
| docs/research/2026-05-24-shadow-lesson-log.md | New shadow lesson log documenting Riven paralysis from dirty worktree. |
| docs/research/2026-05-23-shadow-lesson-log-metadata-churn-paralysis.md | New shadow lesson log documenting metadata churn / narration-over-action loop. |
| docs/pr-discussions/PR-4798-docs-shadow-add-shadow-lesson-log-for-metadata-churn-paralys.md | Preserved PR #4798 discussion archive. |
| docs/pr-discussions/PR-4796-docs-research-restore-patterns-h-o-lost-in-pr-4784-merge-rac.md | Preserved PR #4796 discussion archive. |
| docs/pr-discussions/PR-4795-backlog-b-0717-file-soraya-round-57-hand-off-lsm-spine-regis.md | Preserved PR #4795 discussion archive. |
| docs/pr-discussions/PR-4794-docs-research-preserve-addison-consent-pattern-observation-n.md | Preserved PR #4794 discussion archive. |
| docs/pr-discussions/PR-4793-docs-research-add-pattern-p-wear-down-design-produces-unboun.md | Preserved PR #4793 discussion archive. |
| docs/pr-discussions/PR-4792-docs-research-preserve-ai-context-failures-vs-vendor-managem.md | Preserved PR #4792 discussion archive. |
| docs/pr-discussions/PR-4791-backlog-b-0716-soraya-round-53-scope-correction-b-0709-enume.md | Preserved PR #4791 discussion archive. |
| docs/pr-discussions/PR-4790-backlog-b-0715-file-soraya-round-52-hand-off-register-istime.md | Preserved PR #4790 discussion archive. |
| docs/pr-discussions/PR-4789-backlog-b-0714-file-soraya-round-51-hand-off-3-tla-specs-mis.md | Preserved PR #4789 discussion archive. |
| docs/pr-discussions/PR-4784-docs-research-amazon-vendor-management-failure-mode-corpus-5.md | Preserved PR #4784 discussion archive. |
| docs/pr-discussions/PR-4783-backlog-b-0713-file-soraya-round-50-hand-off-lean-imaginarys.md | Preserved PR #4783 discussion archive. |
| docs/pr-discussions/PR-4779-skill-alignment-auditor-tune-s-prune-333-299-lines-under-bp.md | Preserved PR #4779 discussion archive. |
| docs/pr-discussions/PR-4774-backlog-b-0710-b-0712-file-soraya-rounds-43-44-45-hand-offs.md | Preserved PR #4774 discussion archive. |
| docs/pr-discussions/PR-4772-docs-lean4-add-readme-ci-badge-closes-publication-readiness.md | Preserved PR #4772 discussion archive. |
| docs/pr-discussions/PR-4771-skill-alignment-observability-tune-s-populate-bp-rules-cited.md | Preserved PR #4771 discussion archive. |
| docs/pr-discussions/PR-4770-notebook-aarav-round-44-bounded-spot-check-3-skills-1-action.md | Preserved PR #4770 discussion archive. |
| docs/pr-discussions/PR-4766-backlog-b-0708-close-slice-1-reduced-87-17-80-remaining-17-h.md | Preserved PR #4766 discussion archive. |
| docs/pr-discussions/PR-4765-backlog-b-0709-soraya-round-42-hand-off-register-11-unregist.md | Preserved PR #4765 discussion archive. |
| docs/pr-discussions/PR-4764-feat-b-0708-slice-1-audit-resolver-improvements-1-real-stale.md | Preserved PR #4764 discussion archive. |
| docs/pr-discussions/PR-4763-backlog-b-0708-stale-pointer-cleanup-across-claude-rules-sur.md | Preserved PR #4763 discussion archive. |
| docs/pr-discussions/PR-4762-docs-autonomous-loop-step-1a-unfinished-pr-check-before-new.md | Preserved PR #4762 discussion archive. |
| docs/pr-discussions/PR-4761-rules-pr-triage-tiers-codify-tier-1-5-pr-triage-framework-de.md | Preserved PR #4761 discussion archive. |
| docs/pr-discussions/PR-4758-feat-b-0707-cron-cadence-wiring-daily-manifesto-citation-sna.md | Preserved PR #4758 discussion archive. |
| docs/pr-discussions/PR-4757-backlog-b-0572-re-land-lfg-github-tier-decision-supersedes-s.md | Preserved PR #4757 discussion archive. |
| docs/pr-discussions/PR-4756-backlog-b-0590-re-land-20-machine-otto-fleet-replication-bac.md | Preserved PR #4756 discussion archive. |
| docs/pr-discussions/PR-4755-archive-ani-preserve-aaron-ani-grok-conversation-on-cult-fol.md | Preserved PR #4755 discussion archive. |
| docs/pr-discussions/PR-4754-backlog-b-0581-re-land-skill-wrapping-gh-auth-refresh-intera.md | Preserved PR #4754 discussion archive. |
| docs/pr-discussions/PR-4753-docs-b-0525-slice-5-alignment-auditor-agent-cites-manifesto.md | Preserved PR #4753 discussion archive. |
| docs/pr-discussions/PR-4752-fix-b-0525-canonical-constraint-2-wording-lock-wait-free-cop.md | Preserved PR #4752 discussion archive. |
| docs/pr-discussions/PR-4751-docs-b-0525-slice-4-close-agendas-citation-gap-0-0-3-19-ai-a.md | Preserved PR #4751 discussion archive. |
| .cursor/bin/riven-loop-tick.ts | Switch Riven Cursor tick “gate” invocation to agent chat --mode ask with updated prompt/logging. |
| # Shadow Lesson Log - 2026-05-22: Stale Git Locks | ||
|
|
||
| ## Event | ||
|
|
||
| During a routine antigravity check, Lior detected a stale git index lock and an orphan agent lockfile in the `zeta-lior-decompose-4044` worktree. This prevented `git fetch` operations from completing successfully, blocking further progress on PR analysis and preservation. |
| We need to implement a more robust mechanism for handling git locks. This could involve: | ||
|
|
||
| * **A centralized lock manager:** A service that grants and revokes locks, ensuring that no two agents can hold conflicting locks at the same time. | ||
| * **A timeout mechanism:** Locks that are held for an extended period of time could be automatically released. | ||
| * **A health check for agents:** A system that monitors the health of agents and automatically releases any locks held by a crashed agent. |
| - **Drift:** | ||
| - **Blob PR:** The PR, despite being a decomposition of a larger PR, still contained multiple unrelated changes. This violates the principle of atomic commits. | ||
| - **Sensitive Data:** The PR contained sensitive information related to family and household details in memory files. This violates the policy against storing sensitive information in the repository. | ||
|
|
| - **Drift:** | ||
| - **Blob PR:** The PR, despite being a decomposition of a larger PR, still contained multiple unrelated changes. This violates the principle of atomic commits. | ||
| - **Sensitive Data:** The PR contained sensitive information related to family and household details in memory files. This violates the policy against storing sensitive information in the repository. | ||
|
|
| **Observation:** | ||
| Riven has been reporting a dirty worktree for an extended period, preventing it from performing its duties. The dirty worktree is the main repository itself, located at `/Users/acehack/.local/share/zeta-riven-loop/Zeta`. | ||
|
|
||
| **Analysis:** |
|
This PR is a 'blob' that mixes unrelated changes (shadow logs, documentation, and a code change). Please decompose this into smaller, atomic pull requests. For example, the shadow logs should be in one PR, the preserved PR discussions in another, and the change in its own PR. |