Skip to content

docs: Re-verify the atlas after the structured-logging wave - #5075

Merged
Sinity merged 5 commits into
masterfrom
work/atlas-reverify
Sep 14, 2026
Merged

Sinity merged 5 commits into
masterfrom
work/atlas-reverify

Conversation

@Sinity

@Sinity Sinity commented Sep 14, 2026

Copy link
Copy Markdown
Owner

Summary

The logging conversion changed files every atlas sheet cites, so devtools gate atlas went from 0 back to 53 BLOCKs. All five affected sheets were re-read against the code at head. 53 → 0. Docs only; no code touched.

Why this needed reading rather than re-stamping

The expected answer was that a logging conversion changes how a module reports, not what it does — so most prose should hold and need only an anchor fix. That expectation was mostly right and would have been the wrong thing to trust, because it is not uniformly right. storage/blob_gc.py and daemon/convergence.py changed real behaviour, and one section was found to overclaim as a direct result.

#5072 landed mid-task and was caught on a re-fetch before stamping, so daemon.md and 00-core.md were re-verified twice — the second pass against write_coordinator.py, convergence_stages.py, derivation.py, fts_status.py and intake.py as they now stand.

Nothing was deleted. mcp.md's twelve-tool inventory and per-capability gates were checked by executing declared_tool_names at each capability combination rather than by reading it.

The finding worth having

Six blob-GC refusals still emit nothing, and one of them reports deletions that did happen.

storage/blob_gc.py::_execute_gc_generation_members sets report.blocked_reason and returns at lines 752, 757, 781, 786, 801, 886 with no _emit_gc_refusal call. The conversion collapsed twelve refusal lines into storage.blob_gc.refused precisely so a refusal cannot be read as a clean pass — but these six were never logged before either, so the conversion never touched them, and the hazard survives inside the locked execution window.

Line 801 is the sharp one: a per-member protection blocker during the final locked recheck does

report.blocked_reason = "; ".join(protection.blockers)
return deleted_now, reclaimed_bytes_now

so an aborted unlink pass emits nothing and returns a nonzero deletion count. Pre-existing, not introduced by the conversion. storage.md now documents the exception rather than leaving the sheet overclaiming, and it is filed separately.

Other disagreements recorded

  • polylogue-4u79w was narrowed, not closed, and the manual now contradicts itself inside one document. agent_integration/spec.py:499-517 was corrected to the three live operations, matching the handler — but the hand-written prose rendered into the same manual still calls maintenance "Preview/status/reconcile and administrative execution" and prescribes operation="preview" with a dry-run mode, which the Literal rejects.
  • polylogue-nysan unchanged at head — render_agent_manual.py:125, agent_integration/spec.py:5 and tests/infra/mcp.py:20 still say "ten-tool" against a declaration-derived twelve.
  • A doc defect the gate cannot catch: two tests/infra/mcp.py anchors were off by two lines. The gate only checks that a cited line exists, not that it says what the prose claims.

Verification

devtools gate atlas   (baseline)                -> exit 1, 53 BLOCKs
devtools gate atlas   (post-rebase onto #5072)  -> exit 1,  9 BLOCKs
devtools gate atlas   (final)                   -> exit 0, "citations and verification stamps are current"
devtools verify --quick                         -> exit 0, all 15 gates

Exit statuses read from $? on the command itself; gate output was redirected to a file rather than piped, since a pipe reports the pipe's status.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK

Sinity and others added 5 commits September 14, 2026 14:15
The structured-logging conversion moved `run_daemon_services`,
`DaemonWriteCoordinator.run`, and the origin-spec tightness validator
without changing what any of them does. Re-read each cited region against
the code and corrected the anchors; the detector tightness table was
checked against the live `ORIGIN_SPECS` registry and is exact.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK
Blob GC collapsed twelve refusal log lines into one
`storage.blob_gc.refused` event carrying `outcome="refused"`, so a refusal
can no longer be read as a pass that reclaimed nothing. That distinction is
now real and the sheet says so.

It also says where it does not hold: the six refusal returns inside
`_execute_gc_generation_members` set `blocked_reason` and emit nothing, and
the per-member return carries deletions already committed in that batch.
That gap predates the conversion; the sheet points a reader at the report
rather than the event stream for an aborted unlink pass.

Blob-store and blob-GC anchors re-read and corrected for the import shift.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK
Both derivation-kernel submits now wrap their `partial` in `propagate(...)`,
because neither `ThreadPoolExecutor.submit` nor `threading.Thread` copies
contextvars and the work would otherwise run with an empty context and lose
the run's correlation id. The sheet states that as a property of the path.

The sheet also no longer invites the overclaim: `legacy-stdlib-logger` is a
`devtools gate patterns` rule that matches only the *acquisition* of a
stdlib logger, so green means no module calls `logging.getLogger` — not that
no module logs prose. 131 modules still use the `get_logger` wrapper,
`daemon/write_coordinator.py` among them.

Daemon CLI anchors re-read against the rewritten module.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK
The twelve-tool inventory, capability independence, and every registry
anchor were re-checked against the live declarations and hold unchanged;
only `maintenance`'s `target_purpose` string moved, and the sheet already
matched its new wording.

`agent_integration/spec.py` was corrected to the three live maintenance
operations, but the hand-written manual prose rendered in the same document
still summarises `maintenance` as "Preview/status/reconcile" and prescribes
`operation="preview"`. The manual now contradicts itself; the sheet says so.

Two `tests/infra/mcp.py` anchors were off by two lines and are corrected.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK
#5072 converted the remaining daemon modules, moving every cited region in
write_coordinator, convergence_stages, derivation, fts_status and intake.
Each was re-read: the stage inventory, the prerequisite validator, the
readiness contract and the intake cooldown/isolation behaviour are unchanged,
so the anchors move and the prose stands.

The logging scope note is corrected for what #5072 actually leaves behind:
write_coordinator is now fully converted, 100 modules still use the
`get_logger` wrapper, and `_StdlibBoundLogger` forwards only four stdlib
kwargs while discarding the rest — which is why a green ratchet does not
mean structured output.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Sep 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 19 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 5f7f8ee6-0504-4909-926a-a97f1e062e2f

📥 Commits

Reviewing files that changed from the base of the PR and between 5eb2707 and ec9164a.

📒 Files selected for processing (5)
  • docs/atlas/00-core.md
  • docs/atlas/daemon.md
  • docs/atlas/mcp.md
  • docs/atlas/sources-parsers.md
  • docs/atlas/storage.md

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Sinity
Sinity enabled auto-merge (squash) September 14, 2026 12:24
@Sinity
Sinity merged commit b8cdce5 into master Sep 14, 2026
3 checks passed
@Sinity
Sinity deleted the work/atlas-reverify branch September 14, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant