Skip to content

docs: map provider origin identity boundaries (#2184) - #2185

Merged
Sinity merged 2 commits into
masterfrom
feature/docs/provider-origin-identity-2184
Jun 19, 2026
Merged

Sinity merged 2 commits into
masterfrom
feature/docs/provider-origin-identity-2184

Conversation

@Sinity

@Sinity Sinity commented Jun 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds a durable Provider/Origin/Source identity map so import, query, read, debt, provider-package, and ref-resolution work have one vocabulary boundary to cite.

Problem

Polylogue had partial identity guidance in provider_identity.py, core/sources.py, and docs/architecture.md, but the guidance was fragmented. The issue-set extracted from /tmp/ideas.md now asks for ImportExplain, provider completeness, unified debt rows, and public ref resolution; those features need a precise map of which coordinate owns provider-wire family, public origin, material source, capture mode, parser binding, archive refs, provider-native ids, run/context/event refs, model metadata, and repo/workspace context.

Solution

  • Added docs/provider-origin-identity.md with doctrine, a classification table, current code invariants, feature-specific guidance, cleanup opportunities, and non-goals.
  • Linked the map from docs/architecture.md and corrected its stale Provider file reference to polylogue/core/enums.py.
  • Added the new document to the generated docs surface so the top-level README exposes it.

This is a map-first issue. It does not start a broad rename campaign, add compatibility aliases, or add tests that only prove old spellings are absent.

Verification

  • nix develop --command devtools verify --quick -> exit_code 0
  • nix develop --command devtools render all --check -> sync OK, including docs-surface and agents
  • nix develop --command devtools verify doc-commands -> 82 doc files scanned, no stale commands
  • git diff --check -> clean

Closes #2184

Summary by CodeRabbit

  • Documentation
    • Added new identity-map vocabulary documentation covering provider, origin, source, and related concepts with classification table and code invariants
    • Updated architecture and agent documentation links to reference the new identity vocabulary guide
    • Updated documentation index to surface the new identity reference material

Problem: Polylogue had useful but scattered vocabulary notes for Provider, Origin, Source, parser binding, material source, capture mode, and archive refs. New issues from /tmp/ideas.md need one durable map so future import, provider-completeness, debt, and ref-resolution work does not collapse those coordinates into one source/provider string.\n\nWhat changed: add docs/provider-origin-identity.md with the classification table, current code invariants, and feature guidance for ImportExplain, provider completeness, archive debt, and ref resolution. Link the map from architecture docs and the generated docs surface.\n\nVerification: nix develop --command devtools verify --quick; nix develop --command devtools render all --check; nix develop --command devtools verify doc-commands; git diff --check.\n\nRef #2184
github-actions Bot pushed a commit that referenced this pull request Jun 19, 2026
@coderabbitai

coderabbitai Bot commented Jun 19, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@Sinity, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 47 minutes and 13 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 2a59d7ed-c8a0-4e06-8a4f-5babe4027eeb

📥 Commits

Reviewing files that changed from the base of the PR and between 745ace0 and 6142de7.

📒 Files selected for processing (2)
  • AGENTS.md
  • docs/architecture.md
📝 Walkthrough

Walkthrough

Adds docs/provider-origin-identity.md, a new architecture document that maps Polylogue's identity coordinates (Provider, Origin, Source, capture mode, parser binding, archive/session/ref identity) to their invariants, public/internal status, and feature-citation rules. The doc is registered in the docs surface generator (devtools/docs_surface.py) and cross-linked from docs/architecture.md and AGENTS.md.

Changes

Provider/Origin/Source Identity Documentation

Layer / File(s) Summary
New identity-map document
docs/provider-origin-identity.md
Introduces the full vocabulary map: framing section, classification table with public/internal guidance, current code invariants (Origin public spelling, Provider compat boundaries, Source.runtime_root scope, AISTUDIO_DRIVE bridge, browser capture mode rules), feature-citation rules for ImportExplain payloads/completeness/debt/ref-resolution surfaces, cleanup opportunities, and non-goals (no aliases, no absence-tests, no broad storage rename, no canonicalization of OTel/provider-native/fs ids).
Docs surface registry and generated README row
devtools/docs_surface.py, README.md
Adds a new DocsEntry for "Provider, Origin, and Source Identity" to DOCS_REFERENCE_ENTRIES and README_DOC_TITLES; README gains the corresponding generated documentation table row.
Cross-reference updates in existing docs
docs/architecture.md, AGENTS.md
"Provider and Origin Vocabulary" sections in both files are revised to replace the old two-vocabulary description with pointers to the new doc's classification table; the "workstreams" navigation pointer in both files gains a follow-on link to provider-origin-identity.md.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • Sinity/polylogue#399: Also modifies devtools/docs_surface.py to add entries to README_DOC_TITLES and the docs reference registry.
  • Sinity/polylogue#404: Updates devtools/docs_surface.py surface entries and README_DOC_TITLES as part of a repo layout cleanup, touching the same registry mechanism.
  • Sinity/polylogue#1042: Updates devtools/docs_surface.py, docs/architecture.md, and AGENTS.md with new navigation cross-links for architecture-spine.md/execution-plan.md, the same cross-link pattern used here.

Poem

🐇 A map for the warren, at last it is here,
Provider and Origin, finally clear!
Source roots and capture modes, each in their place,
No mixing coordinates — that's a disgrace.
The rabbit stamps docs with a satisfied sniff:
"No more identity drift!" ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding documentation that maps provider, origin, and identity boundaries in Polylogue.
Description check ✅ Passed The description comprehensively covers all template sections: Summary, Problem, Solution, Verification, and includes Changelog and Risks notes appropriately.
Linked Issues check ✅ Passed The PR fully addresses issue #2184 requirements: it delivers a checked-in identity map with classification table, doctrine, current code invariants, feature-specific guidance, and cleanup opportunities while explicitly avoiding rename campaigns.
Out of Scope Changes check ✅ Passed All changes directly support the identity-mapping objective: documentation files, docs-surface tooling, and README updates are scoped to establishing the provider-origin vocabulary boundary without unrelated modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/docs/provider-origin-identity-2184

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 and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@AGENTS.md`:
- Around line 691-694: In the AGENTS.md file, locate the markdown link reference
to provider-origin-identity.md near the end of the file description where it
mentions "Provider, Origin, and Source Identity Map". Update this link path from
provider-origin-identity.md to docs/provider-origin-identity.md to correctly
reference the file location in the docs directory since AGENTS.md is at the
repository root.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 1dfc38ee-e571-48cb-96b8-e123ed7afbcf

📥 Commits

Reviewing files that changed from the base of the PR and between 988e75d and 745ace0.

📒 Files selected for processing (5)
  • AGENTS.md
  • README.md
  • devtools/docs_surface.py
  • docs/architecture.md
  • docs/provider-origin-identity.md

Comment thread AGENTS.md Resolved
Problem: CodeRabbit found that the generated AGENTS.md copy of the architecture docs rendered a repo-root-relative link as a broken sibling path.

What changed: Referenced the identity-map document as docs/provider-origin-identity.md in the source architecture doc and regenerated AGENTS.md.

Verification: nix develop --command devtools render all --check; git diff --check.

Ref #2184
github-actions Bot pushed a commit that referenced this pull request Jun 19, 2026
@Sinity
Sinity merged commit 03998e4 into master Jun 19, 2026
12 checks passed
@Sinity
Sinity deleted the feature/docs/provider-origin-identity-2184 branch June 19, 2026 17:58
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.

docs(core): map provider, origin, parser, capture, and runtime identity boundaries

1 participant