Repository navigation
docs: twelfth round of audit follow-ups (the docs-alignment routes, the manifest paths) - #288
Conversation
…s docs.agentos.sh serves The docs-alignment test moved from src/api/__tests__ to src/api/runtime/__tests__ and kept the old relative paths to apps/agentos-live-docs and packages/agentos-skills, which resolve one folder short, so the docs site and skills cases skipped in the monorepo as well as in standalone CI. The cases now read both at their monorepo paths and pin the routes the site serves: /getting-started/high-level-api for the High-Level API guide, /skills for the skills overview (/skills/overview redirects there), /features/unified-orchestration on the homepage, and /api for the API reference (the site answers /api/ with a 404). The docs index checks read docs/README.md, the source of the site's documentation index, and run in every checkout. The ecosystem guide's API Reference link pointed at https://docs.agentos.sh/api/, a 404; it points at /api.
Reviewer's GuideThis documentation follow-up fixes monorepo-relative paths in the docs-alignment suite, updates assertions to match the live site’s current routes and source-of-truth documentation files, and corrects the ecosystem guide’s API URL from the 404-producing trailing-slash route. Sequence diagram for docs-alignment route verificationsequenceDiagram
participant Test as docs-alignment.test.ts
participant Files as Repository files
participant Site as docs.agentos.sh
Test->>Files: Read docs/README.md
Test->>Files: Read packages/agentos-skills
Test->>Files: Read packages/agentos-skills-registry
Test->>Site: Fetch /getting-started/high-level-api
Site-->>Test: 200
Test->>Site: Fetch /skills
Site-->>Test: 200
Test->>Site: Fetch /api
Site-->>Test: 200
Test->>Site: Fetch /api/
Site-->>Test: 404
Test->>Site: Fetch /features/unified-orchestration
Site-->>Test: 200
Flow diagram for corrected documentation paths and routesflowchart LR
Test["Docs-alignment tests"] --> Paths["Corrected relative paths"]
Paths --> Docs["apps/agentos-live-docs"]
Paths --> Skills["agentos-skills"]
Test --> Routes["Current live-site routes"]
Routes --> HighAPI["/getting-started/high-level-api"]
Routes --> SkillsRoute["/skills"]
Routes --> API["/api"]
Routes --> Orchestration["/features/unified-orchestration"]
Ecosystem["Ecosystem guide"] --> API
Flow diagram for API reference link correctionflowchart LR
Guide["docs/architecture/ECOSYSTEM.md"] --> Link["https://docs.agentos.sh/api"]
Link --> Response["200 API reference"]
Old["https://docs.agentos.sh/api/"] --> Error["404"]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
PR Summary by QodoFix docs-alignment paths and pin published documentation routes
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1.
|
There was a problem hiding this comment.
Hey - I've found 4 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="src/api/runtime/__tests__/docs-alignment.test.ts" line_range="150-156" />
<code_context>
- const liveDocsIndex = read('../../../../../apps/agentos-live-docs/docs/index.md');
- const documentationIndex = read('../../../../../apps/agentos-live-docs/docs/getting-started/documentation-index.md');
+ const requireCjs = createRequire(import.meta.url);
+ const { publicationManifest } = requireCjs('../../../../docs/publication-manifest.cjs') as {
+ publicationManifest: Array<{ sourcePath?: string; dest: string }>;
+ };
+ expect(
+ publicationManifest.find((entry) => entry.dest === 'getting-started/documentation-index.md')?.sourcePath,
+ ).toBe('packages/agentos/docs/README.md');
expect(packageDocsIndex).toContain('Unified Orchestration Layer');
expect(packageDocsIndex).toContain('AgentGraph');
</code_context>
<issue_to_address>
**PII guide becomes a stub**
When the PII Redaction page is moved to `static-docs`, as the description says, the new manifest check verifies only the documentation-index entry, while the PII Redaction entry remains configured for the old extensions-registry README with `allowMissingSource: true`. After the page moves to `static-docs`, the publication resolver does not find that source and emits a stub instead of the PII guide.
Change the PII manifest entry to use the page's `static-docs` source and add an assertion for that mapping.
</issue_to_address>
### Comment 2
<location path="src/api/runtime/__tests__/docs-alignment.test.ts" line_range="45" />
<code_context>
+// monorepo root. The docs site (apps/agentos-live-docs) and the skills packages
+// (packages/agentos-skills, packages/agentos-skills-registry) sit there only in the
+// monorepo; standalone agentos CI checks out neither, so the tests that read them skip.
+const hasLiveDocs = exists('../../../../../../apps/agentos-live-docs/docs/index.md');
+const hasSkillsPackages = exists('../../../../../agentos-skills/package.json');
const itIfLiveDocs = hasLiveDocs ? it : it.skip;
</code_context>
<issue_to_address>
**Partial checkouts fail instead of skipping**
When a partial monorepo checkout has `docs/index.md` but not the homepage source, or has the skills content package but not the registry package, `hasLiveDocs` and `hasSkillsPackages` enable tests based on one sentinel file, then those tests read unguarded sibling files. The missing files make `readFileSync` throw `ENOENT` and fail the test run.
Have each guard check that every file its enabled tests read exists.
Also at `src/api/runtime/__tests__/docs-alignment.test.ts:46`.
</issue_to_address>
### Comment 3
<location path="src/api/runtime/__tests__/docs-alignment.test.ts" line_range="128" />
<code_context>
- expect(docsIndex).toContain('High-Level API');
- expect(homepage).toContain('High-Level API');
+ // docs/getting-started/HIGH_LEVEL_API.md is published at /getting-started/high-level-api.
+ expect(docsIndex).toContain('/getting-started/high-level-api');
expect(homepage).toContain('/getting-started/high-level-api');
});
</code_context>
<issue_to_address>
**Monorepo docs tests fail on missing links**
When the monorepo uses agentos-live-docs aca9471 before its separate link change is applied, the `docsIndex` and `homepage` assertions require `/getting-started/high-level-api`, which is absent in that revision, so the docs-alignment test fails and blocks the monorepo test run.
Update the assertions to match the links present in that docs revision, or include the separate link change before enabling them.
Also at `src/api/runtime/__tests__/docs-alignment.test.ts:129`.
</issue_to_address>
### Comment 4
<location path="src/api/runtime/__tests__/docs-alignment.test.ts" line_range="219" />
<code_context>
- expect(ecosystemGuide).toContain('https://docs.agentos.sh/api/');
- expect(packageEcosystemGuide).toContain('https://docs.agentos.sh/api/');
+ expect(ecosystemGuide).toContain('https://docs.agentos.sh/api');
expect(ecosystemGuide).not.toContain('agentos-live-docs branch');
- expect(packageEcosystemGuide).not.toContain('agentos-live-docs branch');
</code_context>
<issue_to_address>
**Trailing-slash API link passes**
When the repo-root ecosystem guide links to `https://docs.agentos.sh/api/`, `expect(ecosystemGuide).toContain('https://docs.agentos.sh/api')` matches the trailing-slash URL, so the test accepts a link that returns 404.
Assert that the guide does not contain the trailing-slash URL, or otherwise require the exact non-trailing-slash URL.
</issue_to_address>There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c6a0b4ea51
ℹ️ 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".
…e /api/ link in both ecosystem guides The docs site guard checks the homepage as well as docs/index.md, and the skills guard checks both package.json files, so a checkout that lacks one of them skips the cases instead of failing on a missing file. Both ecosystem cases reject https://docs.agentos.sh/api/, which answers 404, and accept the pages under it.
## [0.13.44](v0.13.43...v0.13.44) (2026-10-11) ### docs * twelfth round of audit follow-ups (the docs-alignment routes, the manifest paths) (#288) ([65268a8](65268a8)) ### fix * **memory:** guardedFetch counts the body on the wire and reads the network's NAT64 prefixes (#287) ([984997f](984997f)) ### test * **vision:** the model check runs the layout tier through process with its tier named (#286) ([7886ac2](7886ac2))
Summary
Twelfth round of follow-ups to the audit of the guides. Every fact below was read at 69bdc82 (0.13.42), agentos-live-docs aca9471 and agentos-extensions 8c3f890; the routes were fetched from docs.agentos.sh on 2026-10-11. Before the merge the
builtInExtension(...)directories were read again at agentos-extensions b282743 and the docs site's two landing pages at agentos-live-docs dbb9128, with the same result.src/api/runtime/__tests__/docs-alignment.test.tsmoved fromsrc/api/__tests__in df7e943 and kept its relative paths to the docs site and the skills packages, which resolve one folder short:../../../../../apps/agentos-live-docs/docs/index.mdlands inpackages/apps/and../../../../agentos-skills/package.jsoninpackages/agentos/, where neither exists. The three docs site cases and the skills case skipped in the monorepo as well as in this repository's CI. They now read../../../../../../apps/agentos-live-docs/and../../../../../agentos-skills/, each guard checks every file outside the package that its cases read (review follow-up), and the cases pin the routes the site serves:/getting-started/high-level-api(200), where the manifest publishesHIGH_LEVEL_API.md, on the documentation landing page (docs/index.md) and the homepage (src/pages/index.tsx). At agentos-live-docs aca9471 neither page links the guide (the sidebar does), so the site adds the two links in a change of its own; theHigh-Level APIlabel is no longer pinned./skillsfor the skills overview (SKILLS_OVERVIEW.md, destskills/index.md)./skills/overviewanswers with a redirect page to/skills(the client-redirects entry indocusaurus.config.ts), and the homepage card links'/skills'./apifor the API reference. The site builds withtrailingSlash: false, serves/apiand answers/api/with a 404; the homepage'sto="/api/"renders ashref="/api", so the check accepts the link with or without the slash./features/unified-orchestrationon the homepage's Graph Orchestration card. The documentation landing page dropped its feature list in May and links neither that guide nor/skills/agentos-skills(it links the skills package on npm), so it is not checked for them; the check that it does not link the retired/skills/skills-extensionstays.docs/README.md, and the test checks that the manifest publishes it asgetting-started/documentation-index.md. They read the site's generated copy before, which a checkout of the site does not have since agentos-live-docs Question: have you looked at x711 for agent tool calls? #25 stopped tracking the pages the build generates. The case needs no other checkout and runs in this repository's CI.packages/agentos-skillsandpackages/agentos-skills-registry. Its expectations hold at both repositories' master:SKILL.mdin the content package's description,Catalog SDKin the registry's, and the three package names indocs/extensions/SKILLS.md.docs/architecture/ECOSYSTEM.md, published at/getting-started/ecosystem, linkedhttps://docs.agentos.sh/api/, which answers 404; it linkshttps://docs.agentos.sh/api. A case checks the link in every checkout, and it and the monorepo case for the monorepo's own ecosystem guide rejecthttps://docs.agentos.sh/api/while accepting the pages under it (review follow-up).builtInExtension('security/pii-redaction', ...)namesregistry/curated/security/pii-redactionin agentos-extensions, which does not exist. agentos-extensions keeps no copy of@framers/agentos-ext-pii-redaction:registry/curated/safety/pii-redaction/holds only a README that points to the package's source outside the repository, and the repository's README says the same of code-safety and grounding-guard. The page at/extensions/built-in/pii-redactionis built from a page written for the site, which agentos-live-docs keeps undervendored-docs/at the path this entry names. This pull request leaves the entry as it is. Pointing it atsafety/pii-redactionwould publish that pointer README in place of the page, and pointing it at a file the site does not have yet stops the site's build: its publication check rejects a missing source, and a sidebar entry with no page fails the build. The page moves to agentos-live-docsstatic-docs/first, where its four sibling guardrail pages are, and the entry becomes astaticDoc(...)entry after that, the order agentos-live-docs'sAGENTS.mdgives for a page written for the site.The other 22
builtInExtension(...)entries were checked the same way, and each names a directory of agentos-extensions master that holds the package'sREADME.mdandpackage.json:research/web-search,research/web-browser,research/news-search,system/cli-executor,auth,media/giphy,media/image-search,media/voice-synthesis,integrations/telegram,communications/telegram-bot,channels/discord,channels/slack,channels/telegram,channels/whatsapp,channels/webchat,research/citation-verifier,tools/local-file-search,tools/send-file-to-channel,research/trulia-search,tools/zip-files,safety/content-policy-rewriterandprovenance/anchor-providers.agent()andgmi()guide items were settled in docs: the gmi() guide and agent({ runtime: 'gmi' }) #192 and docs: eleventh round of audit follow-ups (two pages published, the agent() and gmi() guides aligned) #264. The Telnyx media stream and Call Control commands thatdocs/features/TELEPHONY_PROVIDERS.mdtells the host to send are code work. The open docs site items (the diagrams, the GMI line ofdocs/index.md) are in agentos-live-docs.Linked issues
None.
Type of change
How this was verified
The test's paths were resolved by hand against the monorepo layout (
.gitmodules:packages/agentos,packages/agentos-skills,packages/agentos-skills-registry,apps/agentos-live-docs) and against this repository alone. Each route was fetched from docs.agentos.sh:/getting-started/high-level-api,/skills,/skills/agentos-skills,/features/unified-orchestration,/getting-started/documentation-indexand/apianswer 200,/api/answers 404, and/skills/overviewanswers 301 to a page that redirects to/skills. The rendered homepage and/documentationwere read for the links they carry.CI on this pull request:
Test & Lintruns the test file; in this repository's CI its docs site, skills and monorepo cases skip, and the documentation index and ecosystem cases run. On the first commit, c6a0b4e, CI run 38104112306 passedTest & Lint,Batch-1 gated testsandRelease dry run, and the Links run 38104112274 passed. On the second commit, 694a5a1, CI run 38105623532 passed the same three jobs and the Links run 38105623525 passed;Test & Lintreports the file's 19 cases with 8 skipped (the three docs site cases, the skills case and the four monorepo cases). No workflow in this repository or the docs site runs the docs site cases; they run where the docs site sits beside the package.Migration notes
None.
Checklist
!before the colon for a change that breaks users (feat!:orfeat(api)!:).