Revert "docs(review): add risk-based read-only agent gates"
Harness governance / validate (push) Has been cancelled
Harness governance / validate (push) Has been cancelled
This reverts commit e9e6dede7a.
This commit is contained in:
@@ -25,7 +25,6 @@ from setup_gitea_labels import LABELS, NoRedirect, build_plan
|
||||
from test_gitea_claim_race import PROBE_PREFIX, new_probe_branch
|
||||
from validate_agent_context import validate_manifest
|
||||
from validate_harness_governance import (
|
||||
validate_gitea_artifacts,
|
||||
validate_markdown_links,
|
||||
validate_navigation,
|
||||
validate_repository,
|
||||
@@ -64,35 +63,6 @@ class OfflineRuleTests(unittest.TestCase):
|
||||
self.assertTrue(any(item.path == "README.md" for item in findings))
|
||||
self.assertTrue(any(item.path == "docs/README.md" for item in findings))
|
||||
|
||||
def test_gitea_review_markers_are_required(self) -> None:
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
root = Path(directory)
|
||||
artifacts = (
|
||||
".gitea/ISSUE_TEMPLATE/task.md",
|
||||
".gitea/PULL_REQUEST_TEMPLATE.md",
|
||||
".gitea/workflows/harness-governance.yml",
|
||||
)
|
||||
for relative in artifacts:
|
||||
source = ROOT / relative
|
||||
target = root / relative
|
||||
target.parent.mkdir(parents=True, exist_ok=True)
|
||||
target.write_text(source.read_text(encoding="utf-8"), encoding="utf-8")
|
||||
pr_template = root / ".gitea" / "PULL_REQUEST_TEMPLATE.md"
|
||||
pr_template.write_text(
|
||||
pr_template.read_text(encoding="utf-8").replace(
|
||||
"candidate_sha:", "candidate-sha:", 1
|
||||
),
|
||||
encoding="utf-8",
|
||||
)
|
||||
findings = validate_gitea_artifacts(root)
|
||||
self.assertTrue(
|
||||
any(
|
||||
item.path == ".gitea/PULL_REQUEST_TEMPLATE.md"
|
||||
and "candidate_sha:" in item.message
|
||||
for item in findings
|
||||
)
|
||||
)
|
||||
|
||||
def test_task_status_and_scope_errors_are_reported(self) -> None:
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
root = Path(directory)
|
||||
|
||||
Reference in New Issue
Block a user