Skip to content

docs(publication): publish the structured reply guide - #191

Merged
jddunn merged 2 commits into
masterfrom
docs/publish-structured-reply
Oct 9, 2026
Merged

jddunn merged 2 commits into
masterfrom
docs/publish-structured-reply

Conversation

@jddunn

@jddunn jddunn commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Summary

docs.agentos.sh builds its guide pages from docs/publication-manifest.cjs and rewrites each guide's relative links by the target's file name. docs/GMI.md links features/STRUCTURED_REPLY.md (the page #177 added), the manifest did not list that page, so the link stayed as written and the site's build failed on it (agentos-live-docs deploy run 37881894131, "Markdown link with URL ./features/STRUCTURED_REPLY.md in source file docs/architecture/gmi.md couldn't be resolved").

  • The manifest publishes the structured reply guide at features/structured-reply.md, in the Tools & Capabilities section beside the Structured Output API page. The site derives its sidebar from the manifest at build time, so it needs no change.
  • A docs-alignment case reads every published agentos guide and fails on a relative link whose target exists under docs/ but is not published, naming the guide and the link.

The other docs files the manifest does not publish (KEY_ROTATION.md, MARS_GENESIS.md, architecture/RECURSIVE_SELF_BUILDING_AGENTS.md, architecture/hybrid-retriever.md, architecture/session-retriever.md, features/CLI_ERROR_CODES.md) are linked from no published guide and are left as they are.

Linked issues

None.

Type of change

  • Bug fix
  • Feature
  • Performance
  • Documentation
  • Refactor
  • Tests
  • Build or CI

How this was verified

CI on this pull request: the test commit first, read red on the new case alone, then the manifest commit, read green. After the merge, the agentos-live-docs deploy workflow is run on master and read green.

Migration notes

None.

Checklist

  • Tests cover the changed behavior.
  • Docs are updated.
  • The title follows Conventional Commits, with ! before the colon for a change that breaks users (feat!: or feat(api)!:).
  • No secrets or private data are included.
  • Every automated review thread is settled (how).
  • I have read this change and can explain every line.

Summary by Sourcery

Publish the Structured Reply guide and validate that published documentation links resolve to other published pages.

Enhancements:

  • Add the structured reply guide to the published documentation manifest and place it in the Tools & Capabilities navigation.

Documentation:

  • Publish the Structured Reply guide for the documentation site.

Tests:

  • Add documentation-alignment coverage to detect relative links from published guides to unpublished documentation pages.

docs.agentos.sh rewrites a published guide's relative links by file name
through docs/publication-manifest.cjs. A link to a docs file the manifest
does not publish stays as written and fails the site's build, which is
how the structured reply link in docs/GMI.md broke the deploy of
2026-10-09. The new case reads every published agentos guide and lists
each relative link whose target exists under docs/ but is not published.
@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.

@sourcery-ai

sourcery-ai Bot commented Oct 9, 2026

Copy link
Copy Markdown

Sorry @jddunn, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 23 hours and 44 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@jddunn
jddunn requested a review from Victor-Evogor as a code owner October 9, 2026 04:28
@sourcery-ai

sourcery-ai Bot commented Oct 9, 2026

Copy link
Copy Markdown

Reviewer's Guide

Publishes the structured reply documentation page in the site manifest and adds a docs-alignment test that detects relative links from published guides to existing pages omitted from publication.

File-Level Changes

Change Details Files
Publishes the structured reply guide so links from published documentation resolve on the site.
  • Adds the structured reply page to the manifest in the Tools & Capabilities section.
  • Relies on manifest-driven sidebar generation without additional site configuration.
docs/publication-manifest.cjs
Adds an alignment test that validates published-guide links against the publication manifest.
  • Loads the CommonJS publication manifest and resolves published guide source files.
  • Scans relative Markdown links and reports links to existing but unpublished docs pages.
  • Normalizes filename case and hyphen/underscore differences to match site behavior.
  • Adds a sanity check that the test covers the expected published-guide set.
src/api/runtime/__tests__/docs-alignment.test.ts

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 2 billable files and costs up to $0.50.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 17 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: framerslab/agentos/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Team
  • Run ID: 84ba491a-665a-4ace-a0f8-9b9d89c149c1
📥 Commits

Reviewing files that changed from the base of the PR and between df00ef6 and b81aadc.

📒 Files selected for processing (2)
  • docs/publication-manifest.cjs
  • src/api/runtime/__tests__/docs-alignment.test.ts
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

docs/GMI.md links features/STRUCTURED_REPLY.md, the page #177 added, and
the publication manifest did not list it, so docs.agentos.sh left the
link as written and its build failed. The manifest now publishes the page
at features/structured-reply.md in the Tools & Capabilities section.
@qodo-free-for-open-source-projects

Copy link
Copy Markdown

PR Summary by Qodo

test(docs): detect links to unpublished guides

🧪 Tests 🕐 10-20 Minutes

Grey Divider

AI Description

• Check published AgentOS guides for relative links to docs files absent from the publication
 manifest.
• Report the source guide and offending link to help prevent broken site builds.
• The supplied diff does not publish the structured reply guide, so it does not yet resolve the
 reported failure.
Diagram

graph TD
  M["Publication manifest"] --> G["Published guides"] --> L["Relative links"] --> C{"Target published?"}
  M --> C
  C -- "No" --> O["Offending links"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Validate links in the documentation site build
  • ➕ Exercises the site's actual rewriting and resolution behavior.
  • ➖ Requires the separate site build to catch problems that this package test can flag earlier.

Recommendation: Keep the focused manifest-based test as an early guard, alongside the site build for end-to-end validation. Add the structured reply guide to the publication manifest in this PR: the supplied diff contains only the test, and the manifest currently lacks that entry.

Files changed (1) +55 / -0

Tests (1) +55 / -0
docs-alignment.test.tsDetect links from published guides to unpublished docs +55/-0

Detect links from published guides to unpublished docs

• Adds a docs-alignment case that loads the publication manifest, finds published AgentOS guides, and checks relative Markdown links whose targets exist under docs. The assertion lists each guide and link whose target filename is absent from the manifest.

src/api/runtime/tests/docs-alignment.test.ts

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (1) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Action required

1. Docs test fails on structured reply link 📘 Rule violation ≡ Correctness
Description
publicationManifest has no entry for the existing features/STRUCTURED_REPLY.md guide, although
the new assertion requires published guides to have no links to unpublished files. When the test
reads docs/GMI.md, it finds the link to that guide and adds it to offenders, causing the
regression case to fail.
Code

src/api/runtime/tests/docs-alignment.test.ts[261]

+    expect(offenders, 'published guides that link to a docs file the manifest does not publish').toEqual([]);
Evidence
docs/GMI.md links to an existing target under docs/features/, but the manifest lists Structured
Output and Structured Output API without listing Structured Reply. The new test reads published
guides, checks links to existing files against manifest filenames, and asserts that no offenders
remain, so this link makes the assertion fail.

AGENTS.md: Test Observable Behavior Through Real Paths: AGENTS.md: Test Observable Behavior Through Real Paths
src/api/runtime/tests/docs-alignment.test.ts[250-261]
docs/GMI.md[130-130]
docs/features/STRUCTURED_REPLY.md[1-1]
docs/publication-manifest.cjs[232-245]
docs/publication-manifest.cjs[231-245]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The new docs-alignment test fails because the published `docs/GMI.md` guide links to `features/STRUCTURED_REPLY.md`, which is absent from the publication manifest.
## Fix Focus Areas
- docs/publication-manifest.cjs[231-245]
- src/api/runtime/__tests__/docs-alignment.test.ts[250-261]
## Recommended Fix
Add a manifest entry for `features/STRUCTURED_REPLY.md` with the intended `features/structured-reply.md` destination beside the Structured Output API guide, then run the docs-alignment test and confirm it passes.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Tip of the day
💡 Did you know, you can show, collapse, or hide each part of a finding: code, evidence, and all

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

}
}
}
expect(offenders, 'published guides that link to a docs file the manifest does not publish').toEqual([]);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action required

1. Docs test fails on structured reply link 📘 Rule violation ≡ Correctness

publicationManifest has no entry for the existing features/STRUCTURED_REPLY.md guide, although
the new assertion requires published guides to have no links to unpublished files. When the test
reads docs/GMI.md, it finds the link to that guide and adds it to offenders, causing the
regression case to fail.
Agent Prompt
## Issue description
The new docs-alignment test fails because the published `docs/GMI.md` guide links to `features/STRUCTURED_REPLY.md`, which is absent from the publication manifest.

## Fix Focus Areas
- docs/publication-manifest.cjs[231-245]
- src/api/runtime/__tests__/docs-alignment.test.ts[250-261]

## Recommended Fix
Add a manifest entry for `features/STRUCTURED_REPLY.md` with the intended `features/structured-reply.md` destination beside the Structured Output API guide, then run the docs-alignment test and confirm it passes.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

@jddunn
jddunn merged commit a5f0d51 into master Oct 9, 2026
8 checks passed
github-actions Bot pushed a commit that referenced this pull request Oct 9, 2026
## [0.13.10](v0.13.9...v0.13.10) (2026-10-09)

### fix

* **config:** honor provider model and timeout defaults (#194) ([c5860d4](c5860d4))

### docs

* fifth round of audit follow-ups to the guides (#171) ([e64d2d6](e64d2d6))
* **publication:** publish the structured reply guide (#191) ([a5f0d51](a5f0d51))
* the gmi() guide and agent({ runtime: 'gmi' }) (#192) ([e6c6305](e6c6305))
jddunn added a commit that referenced this pull request Oct 9, 2026
The manifest listed features/STRUCTURED_REPLY.md twice with the same
destination (one entry from #171, one from #191). buildPublicationInventory
reports features/structured-reply.md as a duplicate destination, which the
site's publication contract test rejects before the build, and the sidebar
listed the page twice. The entry at 5.5 from #191 stays.

The structured output API page also covers embedText, so its title names
it, and the consolidation page is titled for what it describes.
@jddunn
jddunn deleted the docs/publish-structured-reply branch October 10, 2026 19:01
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