Skip to content

[auto-task] Validate the oldest workspace documentation - #5656

Merged
orbit-agent-01 merged 1 commit into
agent-mainfrom
orbit/ORB-17539-3db67b0a
Oct 22, 2026
Merged

orbit-agent-01 merged 1 commit into
agent-mainfrom
orbit/ORB-17539-3db67b0a

Conversation

@orbit-agent-01

Copy link
Copy Markdown
Contributor

Task

ORB-17539 — [auto-task] Validate the oldest workspace documentation

Description

Validate a small batch of documentation against the current repository.
Correct factual drift and broken links or Markdown. A batch whose claims
are already accurate is a successful no-diff run with validated no-diff
evidence.

Select a batch

  1. List tracked Markdown files under docs/ and tracked top-level
    README* or CONTRIBUTING* documents with git ls-files. Exclude vendored
    dependencies, generated trees and indexes, archives, and files the
    repository identifies as generated or historical records: the
    historical-record globs in scripts/check-doc-links.py (for example
    docs/design/*/4_decisions.md) are never candidates. Check every selected
    path against that list before validating it. Use repository
    guidance for any additional documentation scope; do not edit unrelated
    files. Keep the paths relative to the repository root.
  2. For each candidate, read a valid last_validated: YYYY-MM-DD value in
    existing YAML frontmatter when present. Otherwise obtain its last-touched
    date with git log -1 --format=%cI -- <path>. Use the date part of that
    timestamp as the initial validation age. Report invalid frontmatter
    values and missing git history rather than treating them as real dates.
  3. If previous completed doc-duties execution summaries record a later
    validation date for a candidate without last_validated, use the latest
    recorded date as its age. This lets a no-frontmatter repository rotate
    after a clean no-diff batch. Otherwise retain the git-derived date.
  4. Sort candidates by validation age, oldest first, breaking ties by
    relative path. Take at most six. If no candidates have a usable age,
    explain why in the execution summary and finish without a diff.

Validate and record

For each selected document, check factual claims against current source,
commands, configuration, and related documentation. Correct verified drift,
genuine spelling errors, and broken Markdown or relative links. Preserve
the author's style and avoid unrelated rewrites. If a claim cannot be
checked, leave it unchanged and record the limit.

Update last_validated to today's date only when that key already exists
and the document was actually verified. Never add YAML frontmatter or a
last_validated key to a document that lacks it. Record every verified
document, including unchanged ones, in this task's durable
execution_summary with the validation date and supporting checks.

The execution summary must list the selected paths in order, each path's
ordering date and source (frontmatter, git, or prior summary), changes and
verification evidence, and any skipped document or unverified claim. State
explicitly when the batch was clean. Do not manufacture an edit to mark a
clean run complete; when no document required changes, follow the workspace's
validated no-diff evidence requirements (attach no-diff.json and captured
validation logs).

Acceptance Criteria

  • Up to six least-recently-validated tracked documents were selected by date and stable path order, using git last-touched dates where no validation metadata or prior summary exists.
  • Each selected document was checked against current evidence; verified drift was corrected, while unverifiable claims were left unchanged and reported.
  • No frontmatter or last_validated key was added to a document that lacked it; existing last_validated keys were updated only after verification.
  • The durable execution summary records selected paths, ordering evidence, checks, changes, and skipped claims, including clean no-diff batches with validated no-diff evidence.

Execution Summary

Click to expand

Outcome: documentation validation completed on 2026-10-22. One verified factual correction was made; the other five selected documents were accurate.

Selection and ordering (criterion 1)

  • git ls-files found 207 tracked Markdown documents under docs/ and at the repository root matching README*/CONTRIBUTING*. Excluded the generated docs/INDEX.md and the repository historical/template patterns in scripts/check-doc-links.py; 169 candidates remained.
  • Every candidate had a usable age. No invalid last_validated value or missing Git history was found. The keyless docs/reviews/unit-test-audit-2026-10-12.md has Git age 2026-10-12, but a prior completed summary records its validation on 2026-10-21, so it did not preempt this batch. The remaining keyless candidates have Git ages of 2026-10-18 or later.
  • The six earliest candidates tie at existing frontmatter date 2026-10-18; relative path order selected:
    1. docs/design/plugins/3_install_time_build.md — 2026-10-18 (frontmatter).
    2. docs/design/remote-access/1_overview.md — 2026-10-18 (frontmatter).
    3. docs/design/remote-access/3_vision.md — 2026-10-18 (frontmatter).
    4. docs/design/remote-access/references/glossary.md — 2026-10-18 (frontmatter).
    5. docs/design/remote-access/specs/host-forward.md — 2026-10-18 (frontmatter).
    6. docs/design/review-gate/1_overview.md — 2026-10-18 (frontmatter).

Document checks (criterion 2)

  1. docs/design/plugins/3_install_time_build.md — fixed and verified against current plugin source/build code. Section 3.3 incorrectly said pinned source commits are fetched with git clone; crates/orbit-tools/src/plugin/source.rs::fetch_git_commit initializes a fresh repository, fetches the commit with --depth 1 --no-tags, checks out FETCH_HEAD detached, and verifies HEAD. Updated that claim. The remaining build sandbox, consent, environment, output, pin and doctor claims were checked against the mapped build implementation.
  2. docs/design/remote-access/1_overview.md — clean. Checked serving and connection entry points, registry-backed workspace selection, request refresh behavior, host forwarding and loopback/origin boundaries against crates/orbit-web, crates/orbit-cli/src/command/web.rs, and crates/orbit-cmd/src/registry/runtime.
  3. docs/design/remote-access/3_vision.md — clean. Checked its current Web/SSH boundaries and federated-MCP ownership cross-links against the implementation and current federated-MCP documentation.
  4. docs/design/remote-access/references/glossary.md — clean. Checked aggregate view, connect, global/single mode and workspace extractor terms against current workspace state, routing and related design documentation.
  5. docs/design/remote-access/specs/host-forward.md — clean. Checked route/path refusals, forwarded headers and streaming, time bounds, host identity, single-flight tunnel lifecycle, connection-state fields and failure codes against api/forward.rs, host_tunnels.rs, ssh_tunnel.rs and connect.rs.
  6. docs/design/review-gate/1_overview.md — clean. Checked timings, reviewer crew fallback, minute budget, before-landing host policy, verdicts and certificate/landing coverage against crates/orbit-config/src/operation.rs and the current review admission/settlement code.

Metadata (criterion 3)

  • Updated existing last_validated fields to 2026-10-22 in all six verified documents. Added no frontmatter or validation key.
  • Also updated the corrected plugin document's existing last_updated to 2026-10-22. No other content metadata changed.

Validation

  • python3 scripts/check-doc-links.py — passed; checked 472 Markdown files.
  • scripts/generate-doc-indexes.sh --check — passed; verified docs/INDEX.md. No indexed title, first heading or summary changed, so make docs-index was not needed.
  • git diff --check — passed.
  • No tests, Cargo checks, or Clippy runs; this was documentation-only work, and no task.final_validation_commands were supplied. No live SSH tunnel or cross-platform sandbox execution was performed; those claims were checked against current implementation source.

Summary and reconciliation (criterion 4)

  • The batch was not fully clean: one source-fetch claim was corrected; the other five documents needed only their existing validation dates advanced. No claim was left unchanged for lack of repository evidence.
  • Starting HEAD was 47fa4452b871077b698155e22cbd01907d299ed2 with a clean tree. Final delivery paths are exactly the six listed documents, all covered by the original task selectors. No files outside the selectors, staged changes, deletions, renames, untracked outputs, or cleanup leftovers remain. docs/INDEX.md and CHANGELOG.md are unchanged. Changes remain uncommitted for the pipeline.
  • Deviation/risk: the injected task body uses a prior-summary rule for keyless documents and does not require a ledger, while the current embedded crates/orbit-core/assets/auto_tasks/doc-duties.yaml uses carried ledger state and a repeated-partial hold. I followed this task's injected description and criteria; this task/template divergence remains a promotion risk requiring operator re-adoption. No ledger artifact was attached because this task body does not require one.

Validation

  • Not reported

Branch Freshness

  • Base ref: origin/agent-main
  • Head ref: orbit/ORB-17539-3db67b0a
  • Behind base: 0
  • Ahead of base: 1

@orbit-agent-01
orbit-agent-01 merged commit 9c90f64 into agent-main Oct 22, 2026
9 checks passed
@orbit-agent-01
orbit-agent-01 deleted the orbit/ORB-17539-3db67b0a branch October 22, 2026 08:41
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