Repository navigation
test(skill): observe refresh phases (diagnostic, DO NOT MERGE) - #619
agenteinstinct1-max wants to merge 2 commits into
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
Automated PR Cleanup Thank you for contributing to silvercode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Refs #613 and #618. Diagnostic-only draft. DO NOT MERGE, even if CI is green.
Type of change
What does this PR do?
Observe the legacy opencode Discovery path used by the Windows skill-refresh regression. Opt in only while the existing skill test file runs. Keep CI and workflows unchanged.
Emit new SKILL_REFRESH events with generated opaque operation IDs, fixed phase/state labels and allowlisted error codes only. No raw paths, skill names, URLs, messages, stacks or payloads are copied into these new events. Existing logging is unchanged and is not covered by this redaction claim. Interrupted work may have a begin event without a terminal event.
Observe download incompleteness, staging checks, version writes, backup, promotion, rollback and cleanup without changing their outcomes. Preserve the existing ignored rollback error behavior for observation, not as an endorsed recovery policy. The controlled double-failure boundary in #618 is distinct from the historical #Old symptom in #613. No blanket retry, production repair, historical error attribution or issue closure is claimed.
How did you verify your code works?
Actual legacy-path candidate: 10 tests / 60 assertions. Tests pin original failure and defect identity, interruption classification/fiber identity, opt-out same-Effect identity/no events, false staging/download incompleteness, observer logging failure containment and closed-code privacy. A controlled test-only FSUtil wrapper asserts distinct promotion EBUSY and rollback EPERM phase events in actual Discovery.pull.
Independent review covered the exact four-file candidate, correct legacy binding, semantics and privacy limits. A withdrawn core-path experiment did not instrument this target and is not validation. Windows observations remain pending. Existing test budgets and CI/workflows are unchanged. DO NOT MERGE.
Screenshots / recordings
No UI claim. Diagnostic test logs only. Private user artifacts are not published.
Checklist