Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9944,7 +9944,7 @@ exports.PROGRESS_BATCH_REASONS = void 0;
exports.isProgressBatchDiagnostic = isProgressBatchDiagnostic;
exports.PROGRESS_BATCH_REASONS = [
'source-coverage', 'scope-capacity', 'manifest-identity', 'batch-identity', 'receipt-coverage',
'evidence-identity', 'evidence-missing', 'receipt-conflict', 'call-budget', 'time-budget', 'aggregate-capacity',
'evidence-identity', 'evidence-missing', 'evidence-duplicate', 'receipt-conflict', 'call-budget', 'time-budget', 'aggregate-capacity',
];
function isProgressBatchDiagnostic(value) {
if (!value || typeof value !== 'object' || Array.isArray(value))
Expand Down
2 changes: 1 addition & 1 deletion build/api/src/domain/progress_batch_diagnostic.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export declare const PROGRESS_BATCH_REASONS: readonly ["source-coverage", "scope-capacity", "manifest-identity", "batch-identity", "receipt-coverage", "evidence-identity", "evidence-missing", "receipt-conflict", "call-budget", "time-budget", "aggregate-capacity"];
export declare const PROGRESS_BATCH_REASONS: readonly ["source-coverage", "scope-capacity", "manifest-identity", "batch-identity", "receipt-coverage", "evidence-identity", "evidence-missing", "evidence-duplicate", "receipt-conflict", "call-budget", "time-budget", "aggregate-capacity"];
export type ProgressBatchReason = typeof PROGRESS_BATCH_REASONS[number];
export type ProgressBatchDiagnostic = Readonly<{
readonly reason: ProgressBatchReason;
Expand Down
166 changes: 150 additions & 16 deletions build/cli/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/deployment_recovery/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37614,7 +37614,7 @@ exports.PROGRESS_BATCH_REASONS = void 0;
exports.isProgressBatchDiagnostic = isProgressBatchDiagnostic;
exports.PROGRESS_BATCH_REASONS = [
'source-coverage', 'scope-capacity', 'manifest-identity', 'batch-identity', 'receipt-coverage',
'evidence-identity', 'evidence-missing', 'receipt-conflict', 'call-budget', 'time-budget', 'aggregate-capacity',
'evidence-identity', 'evidence-missing', 'evidence-duplicate', 'receipt-conflict', 'call-budget', 'time-budget', 'aggregate-capacity',
];
function isProgressBatchDiagnostic(value) {
if (!value || typeof value !== 'object' || Array.isArray(value))
Expand Down
166 changes: 150 additions & 16 deletions build/github_action/index.js

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions docs/agents/execution-contract.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,22 @@ comparison. Validate a corrected Copilot build against the pinned source before
one fresh assessment. Other provider errors retain their own retryability.
No setting or capacity changes.

The same final-response allowance covers repeated citations only when the entire
completed native response is otherwise valid for the current batch, scope,
locale and evidence. Each requirement still needs one to eight distinct admitted,
non-generated references at the pinned head. The complete replacement keeps the
same wire profile, schema, settings and full original evidence dictionary. Its
reserved hint contains only verified requirement/source IDs, batch and citation
counts. The host never deduplicates output or retains rejected prose.
Repetition, length and completion share at most two queries in total per batch.
A second repetition reports non-retryable `progress-batch-retained` with reason
`evidence-duplicate`; other terminal failures retain their existing classification.
Missing, foreign, generated, stale or malformed evidence and simultaneous other
defects cannot acquire citation recovery. Provider-thrown or replayed errors
cannot authorize it. All provisional batches remain unpublished until every
receipt and the final freshness gates pass; the 120-call/30-minute ledger applies
to correction too.

Large inventories use closed semantic assessment codes rather than generated
per-requirement prose. Each code fixes the status, evidence kind and remaining
action together. Copilot renders complete host-owned labels of at most nine
Expand Down
13 changes: 13 additions & 0 deletions docs/issues/branch-management.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,19 @@ before starting one fresh assessment. The run records the actual requirement
count, batch count and per-text allocation before collecting comparison facts.
Length and completion failures cannot each allocate a replacement: there are
still at most two final queries for a batch. No provisional batches publish.

An otherwise valid native assessment that repeats an admitted source citation
may spend that same single allowance on a complete correction. Both narrative
and closed-fact responses must ultimately contain one to eight distinct admitted
citations per requirement. Copilot preserves the whole original evidence
dictionary, scope, head and profile; it never silently deduplicates model output.
A second repetition stops with non-retryable `progress-batch-retained`, reason
`evidence-duplicate`, and verified requirement/batch IDs. Inspect the run and
qualify a corrected build before a fresh full assessment; do not loop on the
unchanged failed head. Invalid evidence and simultaneous other validation defects
remain blocking without citation correction. Accepted earlier batches remain
provisional, and correction cannot reset the 120-call/30-minute ledger.

Issue-body/open-state, native owning PR/target, base and head checks
still run before publication. Publication failures retain their actual completed
effects and error classification; writes are never automatically replayed.
Expand Down
17 changes: 17 additions & 0 deletions docs/security-operations/operations/error-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,23 @@ contract. Existing labels and assessments remain. Verification, review, coverage
and approval are independent gates. Malformed output, provider interruption and
other semantic failures retain their own error and do not receive this recovery.

An otherwise valid complete assessment containing repeated admitted citations
can use the same single replacement allowance as completion and length recovery.
It must bind to the exact current frozen request, original scope, anchors, locale
and full evidence dictionary. Correction uses the same narrative or closed-fact
profile and unchanged schema; each final citations array must contain one to
eight distinct admitted non-generated IDs. Missing, foreign, generated, stale,
malformed evidence or simultaneous semantic defects remain blocking.

If repetition remains on the replacement, `validation.evidence-unavailable`
returns non-retryable `progress-batch-retained` with reason `evidence-duplicate`
and host-verified requirement/batch identifiers. No raw citations or rejected
prose appear in the diagnostic. Earlier accepted batches are still provisional:
none publish when any batch fails. Inspect the linked run and qualify a corrected
build before a fresh full assessment; do not repeatedly rerun the unchanged head.
Other failures keep their existing error and retryability, and no third query or
extra call/time allowance is granted.

A completed acceptance response exceeding its current `summary` or `remaining`
schema bound can use that same single replacement allowance. Native measurements
must bind to the exact captured schema, current batch receipts and citations,
Expand Down
6 changes: 3 additions & 3 deletions specs/CATALOG.md

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions specs/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": "github-communication-experience",
"title": "Semantic GitHub communication and repository localization",
"status": "implemented",
"scope": "English-default, localized, semantic, bounded and idempotent product messages across GitHub and repository-aware operator surfaces; complete acceptance batches and cards with stable source identities, verified published SDD provenance, shared complete-inventory text allocation, precise response diagnostics and same-head requirement evidence before Commit progress publication; shared bounded complete-batch recovery for attributable completed acceptance-field length or completion failures; bounded closed-fact recovery and compact large-inventory assessment, exact original hard allocations, explicit admission counts and non-retryable length exhaustion with separate live-provider qualification; exact JSON-byte allocation and one shared source-part size replacement for both framed profiles, captured request contracts, receipt quota revalidation and nonretryable unit-specific exhaustion",
"scope": "English-default, localized, semantic, bounded and idempotent product messages across GitHub and repository-aware operator surfaces; complete acceptance batches and cards with stable source identities, verified published SDD provenance, shared complete-inventory text allocation, precise response diagnostics and same-head requirement evidence before Commit progress publication; shared bounded complete-batch recovery for attributable completed acceptance-field length or completion failures; bounded closed-fact recovery and compact large-inventory assessment, exact original hard allocations, explicit admission counts and non-retryable length exhaustion with separate live-provider qualification; exact JSON-byte allocation and one shared source-part size replacement for both framed profiles, captured request contracts, receipt quota revalidation and nonretryable unit-specific exhaustion; shared same-profile complete-batch correction for otherwise-valid repeated citations with current-request origin binding, unchanged evidence gates and nonretryable citation exhaustion",
"owner": "Copilot maintainers",
"lastVerified": "2026-11-08",
"specs": [
Expand Down Expand Up @@ -249,7 +249,9 @@
"src/application/ports/pull_request_review_errors.ts",
"src/application/usecases/steps/commit/bugbot/bugbot_review_freshness.ts",
"src/data/repository/pull_request/pull_request_lifecycle_repository.ts",
"src/data/repository/pull_request/pull_request_changes_repository.ts"
"src/data/repository/pull_request/pull_request_changes_repository.ts",
"src/domain/progress_citation_repetition.ts",
"src/application/policies/progress_citation_recovery_policy.ts"
],
"tests": [
"src/domain/__tests__/implementation_plan.test.ts",
Expand Down Expand Up @@ -444,7 +446,8 @@
"src/application/policies/__tests__/progress_partition_byte_recovery.test.ts",
"src/application/usecases/actions/__tests__/progress_partition_byte_publication.integration.test.ts",
"src/application/policies/__tests__/bugbot_freshness_diagnostics.test.ts",
"src/data/repository/__tests__/bugbot_source_bound_identity_repository.test.ts"
"src/data/repository/__tests__/bugbot_source_bound_identity_repository.test.ts",
"src/application/usecases/actions/__tests__/progress_citation_recovery.test.ts"
],
"documentation": [
"docs/configuration.mdx",
Expand Down
Loading
Loading