Repository navigation
Record outcome and deciding actor for bot-resolved issues and PRs in logs --adoption - #79255
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.
Contributor
|
🔬 Test Quality Sentinel is analyzing test quality on this pull request... |
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
logs --adoption
Collaborator
Author
|
@copilot Fix failing checks |
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Contributor
Fixed the oversized metrics fixture by reducing its synthetic workflow count to 340 while preserving the 460,000-byte baseline. The focused tests and final local validation pass, and the latest CJS check is green. Commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
observeLifecycleProposalreturnedlifecycle/automation_decisionas soon as the deciding actor was a bot, before checking whether the PR was merged or the issue was completed. Bot-merged and bot-closed outputs therefore produced identical records, so workflows whose PRs bots merge (e.g.daily-doc-updater) had no recoverable acceptance outcome.This change records the outcome and the deciding actor. Value attribution is unchanged and still requires
explicit_human."adoption": { - "state": "lifecycle", "signal": "automation_decision" + "state": "accepted", "signal": "merged", "acceptance_kind": "automation", + "actor": {"login": "github-actions[bot]", "type": "Bot"}, "human_verified": false }Changes
Lifecycle model (
pkg/lifecycle)Actor{Login, Type}onAdoption(actor,omitzero) andObservation.Observeacceptsacceptance_kind: automation. It rejects an automation decision that claimsHumanVerifiedor has no actor login.explicit_humandoes not requireactor, so existing retained human records stay valid.Proposal observer (
pkg/cli/logs_lifecycle_adoption.go)lifecycleProposalResolution, the same mapping the human path uses.accepted/mergedrejected/closed_without_mergecompletedaccepted/completednot_plannedrejected/closed_not_plannedunknown/missing_resolution_reasonunknown/unverified_decision_actorSummaries
accepted_automationcounter alongsideaccepted_humanandaccepted_delivery_fallback, also shown in thelogsand operational-value text output.Consumers
collect_lifecycle.cjs,prepare_objective_impact_lifecycle.cjs→automation_adopted_count) and theunified_session.d.tsenum.schemas/{audit,logs,logs-jsonl}.schema.jsonandunified-session.schema.json.Docs and prompts
specs/safe-output-lifecycle.md.gh-aw.adoption.accepted_automation.metrics-collectorandobjective-impact-reportprompts; their lock files changed only in content hashes.Reviewer notes
accepted, and the acceptance rate and zero-touch metrics derived from it, now include automation decisions. The value-attribution gates (operational_value_report.go,operational_value_evidence_report.go,operational_value_daily.go) are untouched and still requireexplicit_humanwithhuman_verified.lifecycle/automation_decisionrecords still validate.Mergekeeps the newerObservedAt.lifecycle.adoptionevent carriesacceptanceKindbut notactor.lifecycle) is unchanged. That path no longer producescreate_issue/create_pull_requestadoption records.