Skip to content

chore: repair Sphinx parser issues in eventing docstrings - #1398

Closed
jaelliot wants to merge 1 commit into
WebOfTrust:mainfrom
jaelliot:chore/docstrings-eventing-only
Closed

chore: repair Sphinx parser issues in eventing docstrings#1398
jaelliot wants to merge 1 commit into
WebOfTrust:mainfrom
jaelliot:chore/docstrings-eventing-only

Conversation

@jaelliot

Copy link
Copy Markdown
Contributor

Summary

Repair Sphinx/docutils parser issues in src/keri/core/eventing.py with a narrow, docstring-focused pass.

What changed

  • repaired parser-confusing docstring section formatting in eventing.py
  • adjusted example and prose block formatting where docutils was treating content as malformed lists or blocks
  • kept the change surface confined to the existing eventing docstring cleanup lane

Notes

  • branch pushed from jaelliot/chore/docstrings-eventing-only
  • local verification was bypassed for publish at requester direction
  • residual warnings may still remain in eventing.py and can be handled in follow-up if needed

Copilot AI review requested due to automatic review settings April 14, 2026 22:33

Copilot AI 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.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR aims to eliminate Sphinx/docutils parsing warnings in eventing.py by normalizing docstring reStructuredText (reST) formatting, especially around section headers and embedded examples.

Changes:

  • Adjusted docstring section markers (e.g., Parameters::, Returns::) and spacing to avoid malformed list/literal-block parsing.
  • Reformatted several embedded message examples into explicit literal blocks.
  • Minor cleanup to logging statements and exception handlers while staying within the “docstrings-only” lane.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/keri/core/eventing.py Outdated
Comment thread src/keri/core/eventing.py Outdated
Comment thread src/keri/core/eventing.py Outdated
Comment thread src/keri/core/eventing.py Outdated
Comment thread src/keri/core/eventing.py
Comment thread src/keri/core/eventing.py
Comment thread src/keri/core/eventing.py Outdated
Comment thread src/keri/core/eventing.py Outdated
@jaelliot
jaelliot force-pushed the chore/docstrings-eventing-only branch from 1e9d313 to 259587d Compare June 2, 2026 14:39
Comment thread src/keri/core/eventing.py Outdated
Comment thread src/keri/core/eventing.py Outdated
Comment thread src/keri/core/eventing.py Outdated
Comment thread src/keri/core/eventing.py Outdated
Comment thread src/keri/core/eventing.py Outdated
Comment thread src/keri/core/eventing.py Outdated
Comment thread src/keri/core/eventing.py Outdated
Comment thread src/keri/core/eventing.py Outdated
@jaelliot

jaelliot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

Addressed Ryan's requested eventing docstring review fixes and resolved the corresponding review conversations. The follow-up commits are docstring-only and restore the documented parameter names/descriptions to match the existing signatures/call-site semantics. Ready for re-review when you have a chance.

Comment thread src/keri/core/eventing.py Outdated
Comment thread src/keri/core/eventing.py Outdated
Comment thread src/keri/core/eventing.py Outdated
Comment thread src/keri/core/eventing.py Outdated
Comment thread src/keri/core/eventing.py Outdated
Comment thread src/keri/core/eventing.py Outdated
Comment thread src/keri/core/eventing.py Outdated
Comment thread src/keri/core/eventing.py Outdated
Comment thread src/keri/core/eventing.py Outdated
Comment on lines +5541 to +5573
delnumber (Number): instance of sn of delegating/issuing event if any
diger (Diger): instance of said of delegating/issuing event if any
delnum (Number): instance of sn of event delegatint/issuing event if any
diger (Diger): instance of dig of event delegatint/issuing event if any

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This one appears to be entirely wrong. delnum is not a parameter in the signature, but neither is delnumber. So the parameter list needs to be corrected based on the actual signature.

@jaelliot

jaelliot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

Updated eventing.py based on the review comments. I restored the reviewed delegation parameter names to match the actual function signatures and kept the changes limited to the affected docstring parameter blocks.

Comment thread src/keri/core/eventing.py
nonce (str|None): qb64 of UUID salty nonce. When None generate nonce.
stamp (str): date-time-stamp RFC-3339 profile of ISO-8601 datetime of
creation of message or data, default is now.
version (Versionage): KERI protocol default version if psvrsn is None

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We shouldn't be removing this.

Comment thread src/keri/core/eventing.py Outdated
Comment on lines +1524 to +1533
"""Attaches authenticator(s) from sigers (with or without source as seal) and/or
cigars and/or wigers and/or bonds. A bond is typically a seal reference to
an event with anchoring seal of message as authenticator. In v2 bonds may
also include any Structor subclass not simply seal references.
"""
Attaches indexed signatures from sigers and/or cigars and/or wigers to
KERI message data from serder

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What's the reason for changing this? Is the old description not accurate?

Comment thread src/keri/core/eventing.py Outdated
Comment on lines +3661 to +3678
delsner (Number): instance of sn of delegating event if any
delsger (Diger): instance of said digest of delegating event if any
delsner is Number instance of sn of seal source event of delegator/issuer
delsger is Diger instance of digest of delegator/issuer

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Isn't this the opposite of what it should be? In fact, all the params in that list look wrong.

Comment thread src/keri/core/eventing.py Outdated
Comment on lines +3703 to +3720
delsner (Number): instance of sn of delegating event if any
delsger (Diger): instance of said digest of delegating event if any
delnum is Number instance of sn of seal source event of delegator/issuer
diger is Diger instance of digest of delegator/issuer

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

These should not be changed.

@jaelliot
jaelliot force-pushed the chore/docstrings-eventing-only branch from 7902586 to ac49b3e Compare August 4, 2026 17:52
- deReceiptCouple: pre+sig → pre+cig (matches function's pre+cig couple)
- deSourceCouple: pre+sig → snu+dig (matches function's snu+dig couple)

Both were copy-pasted from deReceiptCouple's original docstring.
@jaelliot
jaelliot force-pushed the chore/docstrings-eventing-only branch from ac49b3e to 2f1ae0e Compare August 4, 2026 18:01
@jaelliot

jaelliot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

Closing: too much has changed on main since this PR was created. Will open a fresh PR with targeted docstring fixes on current main.

@jaelliot jaelliot closed this Aug 4, 2026
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.

3 participants