Commit a8ae9b47e0 for frr

commit a8ae9b47e0cbc92452701ae85688f6b8b7858a9c
Author: Lincoln Thurlow <lincoln@isi.edu>
Date:   Tue Dec 1 11:00:46 2026 -0800

    doc: describe pathd PCEP names and session timeout

    The rules pathd applies to PCEP path and segment list names, and the
    per-PCE session timeout, are not currently documented.

    This commit documents the 56-character limit on PCE-initiated symbolic
    path names, the hashed segment list names and their reserved
    "pcep-hash-" prefix, the PCErr and PCRpt errors for refused paths, and
    what happens at the session timeout of a PCE, including the takeover
    of its paths by another PCE and the errors for any other PLSP-ID, and
    when a PCE or the PCC configuration is removed.

    Signed-off-by: Lincoln Thurlow <lincoln@isi.edu>

diff --git a/doc/user/pathd.rst b/doc/user/pathd.rst
index 5290706221..73be0bfeb5 100644
--- a/doc/user/pathd.rst
+++ b/doc/user/pathd.rst
@@ -174,6 +174,36 @@ controller and obtain those by means of the PCEP protocol.

 .. image:: images/pathd_initiated_multi.png

+The symbolic path name of a PCE-initiated path must not be used by any other
+candidate path, must be at most 56 characters long, and must not start with
+``pcep-hash-``. Otherwise pathd refuses the PCInitiate with PCErr 23/1
+(SYMBOLIC-PATH-NAME in use) or 24/1 (Unacceptable instantiation parameters).
+
+pathd names the segment list of a PCEP path ``<name>-<plsp-id>``. When that
+does not fit in the 64 characters allowed for segment list names, or when the
+name starts with ``pcep-hash-``, the segment list is named ``pcep-hash-``
+followed by the start of the name, a hash of the full name and the PLSP-ID.
+This happens for locally configured dynamic paths, whose name is
+``<policy>-<candidate>``, and these names are shown by
+:clicmd:`show sr-te policy [detail]`. A PCUpd whose segment list name is
+already in use is refused in a PCRpt carrying LSP-ERROR-CODE 4 (Unacceptable
+parameters).
+
+Each PCE has its own session timeout (``session-timeout-interval``, 30 seconds
+by default), started when its PCEP session goes down, even when other PCEs
+are still connected. If the session is not back up when it expires, pathd
+removes the paths that PCE initiated, the policies left without any
+candidate path, and clears the segment lists that PCE computed for locally
+configured dynamic paths. The paths of other PCEs are not affected. Until
+then, another PCE can take over a path initiated by that PCE with a
+PCInitiate carrying only the SRP and LSP objects and the PLSP-ID of the path
+(:rfc:`8281` section 6). The path is then removed at the session timeout of
+the PCE that took it over. A PCInitiate carrying the PLSP-ID of any other path
+is refused with PCErr 19/3 (unknown PLSP-ID), 19/9 (not PCE-initiated) or 19/1
+(still delegated to a connected PCE). Removing a PCE from the configuration
+cleans up its paths right away, and removing the PCC configuration (``no pcc``)
+removes every PCE and so every PCE-initiated path.
+
 Starting
 ========

@@ -284,6 +314,9 @@ Configuration Commands

    Delete or start a segment list definition.

+   Names starting with ``pcep-hash-`` are reserved for segment lists created
+   by PCEP, and a name already used by a PCEP segment list is refused.
+
 .. clicmd:: index INDEX mpls label LABEL
 .. clicmd:: index INDEX nai adjacency A.B.C.D A.B.C.D
 .. clicmd:: index INDEX nai prefix A.B.C.D/M algorithm <0|1>