Skip to content

fix(#113): sync always-on-guidance with v0.17.0 scaffold - #114

Closed
fullsend-ai-coder[bot] wants to merge 2 commits into
mainfrom
agent/113-sync-always-on-guidance
Closed

fullsend-ai-coder[bot] wants to merge 2 commits into
mainfrom
agent/113-sync-always-on-guidance

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Summary

  • Update embedded and scaffolded always-on-guidance/SKILL.md to adopt the v0.17.0 scaffold structure: flatten sub-headers, remove ## Critical Safety section, reorder Tool Usage items, update keyword casing
  • Update TestAlwaysOnGuidance_StructuralHardening assertions to match the new structure (gatekeeping value update authorized by issue)
  • Fix stale path in AGENTS.md: .opencode/unbound/packs/ to .opencode/uf/packs/

Testing

  • TestAlwaysOnGuidance_StructuralHardening passes with updated assertions matching v0.17.0 structure
  • TestSkillFiles_DriftDetection passes (embedded and scaffolded copies are byte-identical)
  • Full test suite passes: go test ./... -race -count=1 (15 packages)
  • go vet ./... passes

Closes #113

Post-script verification

  • Branch is not main/master (agent/113-sync-always-on-guidance)
  • Secret scan passed (gitleaks — 3e527a578cf3957d9b8f72a3edaed7b773b526bf..HEAD)
  • PR body secret scan passed (gitleaks — no-git)

Update the embedded always-on-guidance SKILL.md to adopt
the v0.17.0 scaffold structure: flatten sub-headers under
Code Quality, Testing, and Error Handling; remove the
Critical Safety section (content merged into Git
Discipline); reorder Tool Usage items to lead with Read
files before editing; update keyword casing from NEVER
to Never for force push rule; update scaffold version
marker from vdev to v0.17.0.

Update TestAlwaysOnGuidance_StructuralHardening assertions
to match the new structure: verify Critical Safety is
absent, verify flattened headers have no sub-headers,
verify first Tool Usage item, verify lowercase keyword
casing.

Fix stale path in AGENTS.md Tier 1 fallback: change
.opencode/unbound/packs/ to .opencode/uf/packs/.

Both embedded and scaffolded copies are kept byte-identical
so TestSkillFiles_DriftDetection continues to pass.

Closes #113

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@fullsend-ai-coder
fullsend-ai-coder Bot requested a review from a team as a code owner September 21, 2026 12:18
@fullsend-ai-coder fullsend-ai-coder Bot added the ready-for-review Triggers review agent dispatch label Sep 21, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 12:20 PM UTC · Completed 12:41 PM UTC

Commit: 6e99327 · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $6.38

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Sep 21, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Small bot-authored skill-sync PR fully aligned with a well-scoped 3-task issue and carrying no security, CI, or dependency risk, held at moderate by a below-threshold test-file ratio (0.07) and a pronounced regression-history hotspot on agentkit_test.go (12 fix commits in 90d), consistent with the prior assessment.

Previous run

Risk Assessment: moderate (2/5)

Details

Small bot-authored skill-sync PR with well-scoped issue coverage and low blast radius, tempered slightly by a volatile regression history on the always-on-guidance SKILL.md file (multiple fix commits in 90d) and a test_file_ratio in the moderate band, yielding standard review adequacy.

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Review

Findings

Medium

Low

  • [stale-reference] specs/001-go-rewrite-phases/plan.md:29 — specs/001-go-rewrite-phases/plan.md still references .opencode/unbound/packs/go.md. This is a completed spec artifact treated as an immutable historical record; no update needed.

  • [pattern-inconsistency] internal/agentkit/agentkit_test.go:932 — TestAlwaysOnGuidance_StructuralHardening embeds version references (v0.17.0) in 6 of 8 numbered check comments. The sibling TestForgeGlobal_StructuralHardening uses version-agnostic descriptions. The version strings provide useful provenance context but may become stale on the next scaffold update.

  • [stale-doc] openspec/changes/harden-skill-compression/design.md — The harden-skill-compression design.md, proposal.md, and tasks.md describe decisions that this PR reverses but lack supersession notices. The authoritative spec file (compression-resilience.md) is already annotated.

  • [spec-first-violation] .opencode/agents/cobalt-crush-dev.md — This PR modifies agent prompts and embedded assets without a formal OpenSpec, but Issue fix: update stale paths and sync embedded always-on-guidance skill with v0.17.0 scaffold #113 provides an explicit task list that constitutes a user override for the spec-first requirement. The changes are mechanical path corrections and upstream scaffold sync.

  • [spec-documentation-gap] openspec/changes/harden-skill-compression/specs/compression-resilience.md — The superseded always-on-guidance requirements have no replacement spec document, though the test assertions in TestAlwaysOnGuidance_StructuralHardening effectively serve as the living structural specification.

Previous run

Review

Findings

Medium

  • [stale-doc] .opencode/agents/cobalt-crush-dev.md:22 — cobalt-crush-dev.md and eight other agent/skill files reference .opencode/unbound/packs/ while the PR updates AGENTS.md to the canonical .opencode/uf/packs/ path. The old directory still exists and contains 6 pack files, but the canonical directory contains 13 (missing: ci, content, python, severity packs). Agents following the old path get a partial set of convention packs.
    Remediation: Replace .opencode/unbound/packs/ with .opencode/uf/packs/ in the listed files as a follow-up change.

  • [stale-doc] openspec/changes/harden-skill-compression/specs/compression-resilience.md:3 — The harden-skill-compression openspec contains three MUST requirements (Critical Safety section, hivemind_find first position, sub-header splits) that this PR reverses via v0.17.0 scaffold sync. While the openspec represents a completed historical change, its un-archived presence may confuse agents that read it as prescriptive requirements.
    Remediation: Archive the harden-skill-compression openspec directory or add a supersession note citing PR fix(#113): sync always-on-guidance with v0.17.0 scaffold #114 / Issue fix: update stale paths and sync embedded always-on-guidance skill with v0.17.0 scaffold #113.

  • [protected-path] AGENTS.md — AGENTS.md is a protected governance file. This PR modifies it to fix a stale path reference (.opencode/unbound/packs/ → .opencode/uf/packs/). The change is authorized by Issue fix: update stale paths and sync embedded always-on-guidance skill with v0.17.0 scaffold #113. Human approval is always required for protected-path changes, regardless of context.

Low

  • [convention-trajectory-drift] internal/agentkit/agentkit_test.go:989 — The original hardening test enforced DR-002 compliance by asserting uppercase NEVER. This PR replaces that with lowercase Never. The change is authorized by Issue fix: update stale paths and sync embedded always-on-guidance skill with v0.17.0 scaffold #113, and always-on-guidance SKILL.md is an agent tool prompt rather than a specification or governance document, so strict DR-002 applicability is debatable.

  • [pattern-inconsistency] internal/agentkit/agentkit_test.go:934 — Five t.Error/t.Errorf calls in TestAlwaysOnGuidance_StructuralHardening embed the version string (v0.17.0) directly in the error message. The sibling structural hardening tests use version-agnostic error strings; version context appears only in comments.
    Remediation: Move the version qualifier from the error string into the comment only.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-coder

fullsend-ai-coder Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Finished Fix · ✅ Success · Started 12:42 PM UTC · Completed 12:51 PM UTC

Commit: 6e99327 · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $1.52

- Replace stale `.opencode/unbound/packs/` path with `.opencode/uf/packs/`
  in 9 agent/skill files (cobalt-crush-dev, divisor-*, openspec-*)
- Add supersession note to harden-skill-compression openspec citing
  PR #114 / Issue #113
- Remove version string `(v0.17.0)` from test error messages in
  TestAlwaysOnGuidance_StructuralHardening to match sibling test
  patterns (version context retained in comments)

Addresses #114
@fullsend-ai-coder

Copy link
Copy Markdown
Contributor Author

🔧 Fix agent — iteration 1 (bot-triggered)

Addressed all 5 review findings: fixed stale .opencode/unbound/packs/ path in 9 agent/skill files, added supersession note to harden-skill-compression openspec, removed version strings from test error messages. Disagreed on 2 informational findings (protected-path human approval gate, DR-002 casing in tool prompts).

Fixed (3):

  1. [stale-doc] cobalt-crush-dev.md and eight other agent/skill files reference .opencode/unbound/packs/ instead of .opencode/uf/packs/ (.opencode/agents/cobalt-crush-dev.md): Replaced .opencode/unbound/packs/ with .opencode/uf/packs/ in all 9 agent and skill files: cobalt-crush-dev.md (2 occurrences), divisor-testing.md, divisor-architect.md, divisor-guard.md, divisor-adversary.md (3 occurrences), divisor-sre.md, openspec-explore/SKILL.md, openspec-apply-change/SKILL.md, openspec-propose/SKILL.md. Left specs/001-go-rewrite-phases/plan.md untouched as it is a completed historical spec artifact.
  2. [stale-doc] harden-skill-compression openspec contains MUST requirements reversed by this PR (openspec/changes/harden-skill-compression/specs/compression-resilience.md): Added a supersession note at the top of compression-resilience.md citing PR fix(#113): sync always-on-guidance with v0.17.0 scaffold #114 / Issue fix: update stale paths and sync embedded always-on-guidance skill with v0.17.0 scaffold #113 and identifying which requirements were reversed (Critical Safety section, hivemind_find first position, sub-header splits) while noting forge-global requirements remain current.
  3. [pattern-inconsistency] Five t.Error/t.Errorf calls embed version string (v0.17.0) in error messages (internal/agentkit/agentkit_test.go): Removed (v0.17.0) and (v0.17.0 casing) suffixes from all 5 error message strings in TestAlwaysOnGuidance_StructuralHardening. Version context is retained in the corresponding comments above each assertion, matching the pattern used by sibling structural hardening tests (TestForgeGlobal_StructuralHardening).

Disagreed (2):

  1. [protected-path] AGENTS.md is a protected governance file requiring human approval: The AGENTS.md change is already part of the original PR commit, authorized by Issue fix: update stale paths and sync embedded always-on-guidance skill with v0.17.0 scaffold #113. This finding is informational — it correctly notes that human approval is required for protected-path changes, which is a process gate enforced by the post-script, not something the fix agent can resolve. The stale path fix in AGENTS.md is correct and necessary.
  2. [convention-trajectory-drift] DR-002 compliance: NEVER vs Never in force push rule: The casing change from NEVER to Never is authorized by Issue fix: update stale paths and sync embedded always-on-guidance skill with v0.17.0 scaffold #113 and aligns with the v0.17.0 scaffold structure. always-on-guidance SKILL.md is an agent tool prompt, not a specification or governance document, so strict DR-002 (RFC 2119 keywords) applicability is debatable. The reviewer acknowledged this in the finding itself.

Tests: passed

Decision points
  • Whether to fix stale path references in agent/skill files or treat as follow-up (alternatives: Fix in this PR alongside the AGENTS.md path fix, Leave for a separate follow-up PR; rationale: Fixed in this PR because the reviewer raised it as a finding (not just a suggestion), the PR already fixes the same stale path in AGENTS.md, and leaving agents pointing at the incomplete old directory (6 packs vs 13) causes immediate functional degradation for agent workflows.)
  • Whether to modify the historical spec plan.md reference (alternatives: Update specs/001-go-rewrite-phases/plan.md, Leave it unchanged; rationale: Left unchanged because it is a completed historical spec artifact (marked with checkmark) that documents what was true at the time. Modifying historical records to reflect current state would be misleading.)

Next steps:

  • /fs-review — request a re-review of the changes
  • /fs-fix <your instruction> — run another fix pass with specific guidance
  • Push commits directly — review re-runs automatically on push
    Updated by fullsend fix agent

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 12:52 PM UTC · Completed 1:12 PM UTC

Commit: c5d77d2 · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $5.67

@fullsend-ai-review fullsend-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the review comment for full details.

safetyIdx := strings.Index(text, "## Critical Safety")
if safetyIdx < 0 {
t.Error("always-on-guidance: missing '## Critical Safety' section")
// (1) Critical Safety section removed in v0.17.0 (content merged into main body).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[low] pattern-inconsistency

TestAlwaysOnGuidance_StructuralHardening embeds version references (v0.17.0) in 6 of 8 numbered check comments. The sibling TestForgeGlobal_StructuralHardening uses version-agnostic descriptions. The version strings provide useful provenance context but may become stale on the next scaffold update.

@fullsend-ai-review fullsend-ai-review Bot added the requires-manual-review Review requires human judgment label Sep 21, 2026
@jflowers

jflowers commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

these changes should come from their source repo

@jflowers jflowers closed this Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Triggers review agent dispatch requires-manual-review Review requires human judgment risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: update stale paths and sync embedded always-on-guidance skill with v0.17.0 scaffold

2 participants