Repository navigation
Description
Context
The current catalog has 118 names: 25 data, 91 internal(reason) and 2 shared-no-dispatcher. A name is a data face only when it is shared in the catalog and has a HostDispatch at host_key(name). Shared alone is not enough; loaderService and pluginMounter are shared by rutis-loader without a dispatcher.
internal is a contract statement, not a note. It means the service face cannot be replaced across a language or process boundary: it cannot be provided by a leaf, injected by a leaf, or injected across a scope. The reason explains what prevents a data face (state machine, lock callback, OS object, secret, hot path); it is a review input, not runtime behaviour. It does not mean the functionality cannot be reimplemented: that would be a new data service. Scope is unrelated: instance-scoped timeline is data, process-scoped hostPlatform is internal.
Scope
- Every provided process/Session/branch service name declares a face:
data(shared + dispatcher) orinternal(reason). - The generated catalog reports
face: data | internal(reason) | shared-no-dispatcherinstead ofCrosses languages. xtask checkchecks both directions: a dispatcher without shared fails; a shared name without a dispatcher fails; a shared name with a reason fails.managementMethodsis a code item:register_sharedcurrently runs before the typed registration and is overwritten. Register shared after it, or preserve it inregister_names.localIdnow has agetdispatcher.loaderServiceandpluginMounterstayshared-no-dispatcher: they are external rutis-loader names, a leaf cannot call them, and removing or dispatching them needs an upstream change.- A leaf's
injectandprovidesnames are refused unless their face isdata. Names::copy_with_faces(catalog, build, faces)carries the reason table;Names::copykeeps its signature with an empty table.- Reason set is closed:
object,hot-path,lock-callback,secret,owner-api,control,host-resource,legacy-no-consumer. - The document template and PR checklist ask: public service methods carry data only; where do handles stay internal?
Acceptance
xtask checkfails on a new unmarked service name, a dispatcher without shared, and a shared name without a dispatcher.- The catalog shows
data,internal(reason)orshared-no-dispatcherfor every provided name; the three shared-without-dispatcher names are resolved, not waived. - A name marked
internalis refused as a leaf dependency or leaf provider. - Local calls still use the typed method; the data face delegates to the same implementation.
- The authoring guide shows the six rules (data methods, ids, operations, events, data errors, cancellation).
Activity
docs: define internal as a non-substitutable face
docs: align service faces with the dispatcher rule
docs: tighten the inventory wording and wait
docs: follow the session files owner contract and classify wait
docs: close the reason set and align scheduleJobs
docs: finish the inventory reasons and wire shapes
docs: use Scheduler's flat request and account for wakeups
docs: mirror the wakeup method table and clarify the optional catalog
docs: turn the inventory groups into tables
1 remaining item
eric8810 commentedon Nov 10, 2026
Design merged in #1301 (
docs/design/service-faces.md, commitcca96b1b6). This issue can proceed against the merged document.feat(runtime): expose face reasons on an Agent
feat: classify service faces and enforce the catalog check
docs: design cross-language service faces
docs: describe the catalog face column
fix: close the face reason set and apply it to named keys
docs: define internal as a contract and add the PR check
docs: fix the service-faces links in AGENTS
docs: require cross-language service faces
feat(runtime): record internal service-face reasons
docs: make data faces the default for existing services
feat(scheduler): expose scheduleJobs and wakeups data faces
docs: define the public service face migration (#1393)
feat(scheduler): expose scheduleJobs and wakeups data faces (#1396)