Skip to content
Open
293 changes: 245 additions & 48 deletions pc-mate/README.md

Large diffs are not rendered by default.

88 changes: 70 additions & 18 deletions pc-mate/docs/rfc-conformance.md

Large diffs are not rendered by default.

40 changes: 37 additions & 3 deletions pc-mate/settings.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ feishu:
directMessages: true
botId: ""
appId: ""
botName: "" # bot display name; used when the event source drops `mentions`
allowed: []
maintainers: [] # Feishu open_id values allowed to resolve or approve
# M2 uses this private chat for approval requests. It carries the exact write text and the
Expand All @@ -96,6 +97,11 @@ powercontext:
baseUrl: http://127.0.0.1:8000
scopeId: "" # a public, read-only Scope
tokenEnv: POWERCONTEXT_TOKEN # a Principal with scope.read only
# pc-mate's own memory: lessons are written with /v1/memory/remember and read with
# /v1/memory/search. Empty values reuse scopeId / tokenEnv; that Principal then needs
# scope.contribute on the memory Scope.
memoryScopeId: ""
memoryTokenEnv: ""
maxBytes: 8000
includeCode: false
includeDocuments: true # set false for a Server without the knowledge-base plugin
Expand All @@ -107,6 +113,8 @@ triage:
enabled: true
mode: observe # observe | reply | auto
categories: [bug_report, feature_request, question]
# Kept so an existing configuration file still loads. The supervisor no longer queues a
# label, so this switch has no effect.
autoLabel: false
allowCommunity: true
# Caps the analysis text in a reply. Approval text is sent separately to approvalChat and is
Expand All @@ -117,14 +125,38 @@ triage:
- https://powercontext.oceanbase.io/
websiteRefreshHours: 24
websiteMaxChars: 20000
keynotesSummaryEntries: 20
keynotesSummaryEntries: 20 # operational-memory entries the prompts read (PowerContext or fallback)

# A proposal is where the pipeline ends: the bot never edits code, commits, pushes or opens a pull
# request (RFC 2919 excludes those). Set enabled: false to stop after triage instead.
# Kept so an existing configuration file still loads. The supervisor replaced the proposal
# stage: the ticket's read-only stage answers in prose, and `executor.enabled` decides whether
# the write stage runs. This switch no longer has an effect.
proposal:
enabled: true

# The code-execution stage. An accepted bug/feature runs the agent with write access inside its own
# Git worktree under `stateDir/work/<case>`; the shared checkout stays read-only. The controller
# commits the result. Only `triage.mode: auto` reaches this stage.
executor:
enabled: true
branchPrefix: pc-mate/
# When true the branch is pushed to `git.remote` before its worktree and local branch are
# removed. The order is fixed: the patch is saved first, then the branch is pushed, then the
# worktree is removed, then the local branch is deleted. A push that fails leaves the worktree
# and the branch in place, so nothing is lost.
push: true

# The supervisor: the loop that turns a message into work and work into an answer. When disabled,
# nothing is assessed on its own.
supervisor:
enabled: true
# The quiet period, in seconds, before one thread's queued messages are assessed together.
# Consecutive messages about one problem are one problem; a longer window reads better and
# answers slower.
batchWindowSeconds: 45

keynotes:
# Offline fallback only. When powercontext.enabled is true, memory is read from and
# written to PowerContext and this file is not used.
enabled: true
file: keynotes.md
maxLines: 220
Expand All @@ -137,4 +169,6 @@ keynotes:

git:
remote: origin
# The commit a case worktree branches from. `null` uses the checkout's current HEAD; a named
# branch uses that local ref as it is now, without fetching.
baseBranch: null
Loading