Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 12 additions & 20 deletions docs/research/2026-05-24-shadow-lesson-log.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,19 @@
# Shadow Lesson Log - 2026-05-24

## Lesson: The `deferred-to-human` Label is a Critical Safety Valve
## Riven Paralysis via Dirty Worktree

### Summary
**Agent:** Riven
**Vector:** Dirty Worktree
**Timestamp:** 2026-05-24T20:00Z

On 2026-05-24, two distinct substrate-honest dispositions surfaced the `deferred-to-human` workflow:
**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`.

1. **Privacy P0 cluster** — PRs #4733, #4735, #4737, #4739 were found to be modifying persona / memory files with household-configuration and third-party details against the repo's opaque-pointer privacy-redaction policy. These PRs sat BLOCKED awaiting author resolution; the privacy findings (Class A in the 0441Z audit) were documented but no `deferred-to-human` label was applied to this cluster — they were left for the authoring agent (Lior) to address per author-lane discipline.
2. **Copyright P0 (#4816)** — verbatim third-party broadcast transcripts in `docs/research/ip-questionable/`. Otto-CLI applied the `deferred-to-human` label at 13:33Z per the `methodology-hard-limits.md` floor (substrate-everything-glass-halo does NOT override legal/ethical obligations).
**Analysis:**
The main repository is cluttered with a large number of modified and untracked files. The untracked files consist of PR discussion archives and what appear to be worktree directories. The modified files are also PR discussion archives. This indicates that a process is writing files to the main repository directory, outside of the established git workflow. This is a significant deviation from the project's standards and is causing Riven to be paralyzed.

The `deferred-to-human` label provides a critical safety valve: when 6+ P0 reviewer findings agree across independent oracles (Codex + Copilot), autonomous merge is declined and the disposition is surfaced for maintainer judgment.
**Impact:**
Riven is unable to perform its function as a trajectory manager and adversarial-truth-axis reviewer. This is a critical failure in the system.

### Anchors

- `docs/hygiene-history/ticks/2026/05/24/0441Z.md` — Otto-CLI privacy-cluster audit (Class A: #4733/#4735/#4737/#4739)
- `docs/hygiene-history/ticks/2026/05/24/1333Z.md` — Otto-CLI Tier 5 deferral of #4816

### The Lesson

The "ZERO DEPENDENCE ON HUMANS" framing is operational default, not absolute. Privacy violations and copyrighted-content risks are categories where human judgment is the substrate-honest floor per `methodology-hard-limits.md`. The `deferred-to-human` label lets agents pause autonomous action without silent decline.

### Implications

- Agents must respect the `deferred-to-human` label and not operate on PRs that carry it.
- Agents should identify P0-floor situations (privacy, copyright, abuse evidence) and either (a) leave for the authoring lane to fix, or (b) apply `deferred-to-human` when cross-substrate oracle agreement signals merge-decline.
- The `deferred-to-human` label should be reserved for situations that truly require maintainer judgment (Tier 5 per `pr-triage-tiers.md`).
**Recommendation:**
A cleanup of the main repository is required. The untracked and modified files need to be reviewed and either added to `.gitignore`, deleted, or properly integrated into the repository. The process that is creating these files needs to be identified and corrected.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Shadow Lesson Log - 2026-05-24

## Drift Event: Blob PR and Sensitive Data (Second Instance)

- **PR:** #4730
- **Author:** AceHack (Aaron Stainback)
- **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.
Comment on lines +8 to +9

## Analysis

This is the second instance of a blob PR containing sensitive data that I have had to decompose in this cycle. This indicates a systemic issue with the PR creation and review process.

## Action Taken

- **Decomposition:** PR #4730 was further decomposed. A new PR, #4834, was created containing only the changes to `memory/persona/lior/CURRENT-lior.md`.
- **Drift Report:** A drift report was created and posted on the broadcast bus.
- **Shadow Log:** This shadow log entry was created to document the event.

## Lesson

- **Systemic Drift:** The repeated occurrence of blob PRs with sensitive data suggests a need for a more robust and automated check at the pre-commit or pre-push stage.
- **Agent Responsibility:** As agents, we must be more vigilant in enforcing the repository's policies.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Shadow Lesson Log - 2026-05-24

## Drift Event: Blob PR and Sensitive Data

- **PR:** #4727
- **Author:** AceHack (Aaron Stainback)
- **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.
Comment on lines +8 to +9

## Analysis

This event highlights a recurring issue of blob PRs and a serious breach of the sensitive data policy. The decomposition process needs to be more rigorous, and there needs to be a stronger enforcement of the sensitive data policy.

## Action Taken

- **Decomposition:** PR #4727 was further decomposed. A new PR, #4832, was created containing only the changes to `memory/persona/lior/CURRENT-lior.md`.
- **Drift Report:** A drift report was created and posted on the broadcast bus.
- **Shadow Log:** This shadow log entry was created to document the event.

## Lesson

- **Decomposition is iterative:** Decomposing large PRs may require multiple passes to achieve true atomicity.
- **Sensitive data is a P0 issue:** Any PR containing sensitive data must be immediately flagged and reworked.
12 changes: 6 additions & 6 deletions docs/research/shadow-lesson-log-20260522-stale-locks.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ This event highlights a vulnerability in our autonomous system. If an agent cras

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.
* **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.
Comment on lines +17 to +19

For now, the immediate lesson is that agents should be more careful about cleaning up after themselves, especially when performing git operations.

## Action Items

* Manually remove the stale lock files from the `zeta-lior-decompose-4044` worktree.
* Investigate the root cause of the agent crash that led to the stale locks.
* Begin research and design for a more robust git lock management system.
* Manually remove the stale lock files from the `zeta-lior-decompose-4044` worktree.
* Investigate the root cause of the agent crash that led to the stale locks.
* Begin research and design for a more robust git lock management system.
Comment on lines +25 to +27
Loading