nexus-agents - v2.80.0
GitHub
npm
Preparing search index...
IVotingStrategy
Interface IVotingStrategy
Interface for voting strategy implementations.
interface
IVotingStrategy
{
algorithm
:
|
"simple_majority"
|
"supermajority"
|
"unanimous"
|
"proof_of_learning"
|
"opinion_wise"
|
"higher_order"
;
calculateOutcome
(
votes
:
Map
<
string
,
{
decision
:
"approve"
|
"reject"
|
"abstain"
;
reasoning
:
string
;
confidence
:
number
;
conditions
?:
string
[]
;
rejectionCategories
?:
(
|
"YAGNI"
|
"DRY_VIOLATION"
|
"OVER_ENGINEERING"
|
"SCOPE_CREEP"
|
"SECURITY_RISK"
|
"MISALIGNED"
|
"INSUFFICIENT_EVIDENCE"
)
[]
;
findings
?:
{
summary
:
string
;
location
:
string
;
severity
:
"low"
|
"medium"
|
"high"
|
"critical"
;
gate
:
{
reread_cited_line
:
"failed"
|
"skipped"
|
"passed"
;
traced_call_path
:
"failed"
|
"skipped"
|
"passed"
;
named_assertion
:
string
;
ruled_out_language_non_issue
:
"failed"
|
"skipped"
|
"passed"
;
}
;
claim
:
string
;
}
[]
;
timestamp
?:
string
;
}
,
>
,
weights
?:
Map
<
string
,
number
>
,
)
:
VotingOutcome
;
}
Implemented by
HigherOrderVotingStrategy
OWVoting
Index
Properties
algorithm
Methods
calculate
Outcome
Properties
Readonly
algorithm
algorithm
:
|
"simple_majority"
|
"supermajority"
|
"unanimous"
|
"proof_of_learning"
|
"opinion_wise"
|
"higher_order"
Methods
calculate
Outcome
calculateOutcome
(
votes
:
Map
<
string
,
{
decision
:
"approve"
|
"reject"
|
"abstain"
;
reasoning
:
string
;
confidence
:
number
;
conditions
?:
string
[]
;
rejectionCategories
?:
(
|
"YAGNI"
|
"DRY_VIOLATION"
|
"OVER_ENGINEERING"
|
"SCOPE_CREEP"
|
"SECURITY_RISK"
|
"MISALIGNED"
|
"INSUFFICIENT_EVIDENCE"
)
[]
;
findings
?:
{
summary
:
string
;
location
:
string
;
severity
:
"low"
|
"medium"
|
"high"
|
"critical"
;
gate
:
{
reread_cited_line
:
"failed"
|
"skipped"
|
"passed"
;
traced_call_path
:
"failed"
|
"skipped"
|
"passed"
;
named_assertion
:
string
;
ruled_out_language_non_issue
:
"failed"
|
"skipped"
|
"passed"
;
}
;
claim
:
string
;
}
[]
;
timestamp
?:
string
;
}
,
>
,
weights
?:
Map
<
string
,
number
>
,
)
:
VotingOutcome
Parameters
votes
:
Map
<
string
,
{
decision
:
"approve"
|
"reject"
|
"abstain"
;
reasoning
:
string
;
confidence
:
number
;
conditions
?:
string
[]
;
rejectionCategories
?:
(
|
"YAGNI"
|
"DRY_VIOLATION"
|
"OVER_ENGINEERING"
|
"SCOPE_CREEP"
|
"SECURITY_RISK"
|
"MISALIGNED"
|
"INSUFFICIENT_EVIDENCE"
)
[]
;
findings
?:
{
summary
:
string
;
location
:
string
;
severity
:
"low"
|
"medium"
|
"high"
|
"critical"
;
gate
:
{
reread_cited_line
:
"failed"
|
"skipped"
|
"passed"
;
traced_call_path
:
"failed"
|
"skipped"
|
"passed"
;
named_assertion
:
string
;
ruled_out_language_non_issue
:
"failed"
|
"skipped"
|
"passed"
;
}
;
claim
:
string
;
}
[]
;
timestamp
?:
string
;
}
,
>
Optional
weights
:
Map
<
string
,
number
>
Returns
VotingOutcome
Settings
Member Visibility
Protected
Internal
Theme
OS
Light
Dark
On This Page
Properties
algorithm
Methods
calculate
Outcome
GitHub
npm
nexus-agents - v2.80.0
Loading...
Interface for voting strategy implementations.