Compare commits
1 Commits
sprint/iss
...
fix/715
| Author | SHA1 | Date | |
|---|---|---|---|
| 8b1ae6ad71 |
@@ -11,22 +11,37 @@ jobs:
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
- name: Install parse dependencies
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python3 -m pip install --quiet pyyaml
|
||||
- name: Parse check
|
||||
python3 -m pip install --quiet pyyaml pytest
|
||||
|
||||
- name: JSON parse check
|
||||
run: |
|
||||
find . -name '*.json' | while read f; do python3 -m json.tool "$f" > /dev/null || { echo "FAIL: $f"; exit 1; }; done
|
||||
echo "PASS: All JSON files parse"
|
||||
|
||||
- name: YAML parse check
|
||||
run: |
|
||||
find . \( -name '*.yml' -o -name '*.yaml' \) | grep -v .gitea | while read f; do python3 -c "import yaml; yaml.safe_load(open('$f'))" || { echo "FAIL: $f"; exit 1; }; done
|
||||
echo "PASS: All YAML files parse"
|
||||
|
||||
- name: Python compile check
|
||||
run: |
|
||||
find . \( -name '*.yml' -o -name '*.yaml' \) | grep -v .gitea | xargs -r python3 -c "import sys,yaml; [yaml.safe_load(open(f)) for f in sys.argv[1:]]"
|
||||
find . -name '*.json' | while read f; do python3 -m json.tool "$f" > /dev/null || exit 1; done
|
||||
find . -name '*.py' | xargs -r python3 -m py_compile
|
||||
echo "PASS: All Python files compile"
|
||||
|
||||
- name: Shell syntax check
|
||||
run: |
|
||||
find . -name '*.sh' | xargs -r bash -n
|
||||
echo "PASS: All files parse"
|
||||
echo "PASS: All shell scripts parse"
|
||||
|
||||
- name: Secret scan
|
||||
run: |
|
||||
if grep -rE 'sk-or-|sk-ant-|ghp_|AKIA' . --include='*.yml' --include='*.py' --include='*.sh' 2>/dev/null | grep -v '.gitea' | grep -v 'detect_secrets' | grep -v 'test_trajectory_sanitize'; then exit 1; fi
|
||||
echo "PASS: No secrets"
|
||||
|
||||
- name: Pytest
|
||||
run: |
|
||||
pip install pytest pyyaml 2>/dev/null || true
|
||||
python3 -m pytest tests/ -q --tb=short 2>&1 || true
|
||||
echo "PASS: pytest complete"
|
||||
python3 -m pytest tests/ -q --tb=short
|
||||
echo "PASS: All tests pass"
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
# Issue #582 — Epic Slice Verification
|
||||
|
||||
Refs #582
|
||||
|
||||
## Status: COMPLETE ON MAIN
|
||||
|
||||
The parent-epic orchestration slice for the Know Thy Father multimodal pipeline is already merged and functional on `main`.
|
||||
|
||||
## Mainline Evidence
|
||||
|
||||
### Core implementation files
|
||||
- `scripts/know_thy_father/epic_pipeline.py` — orchestrator that chains all phases
|
||||
- `docs/KNOW_THY_FATHER_MULTIMODAL_PIPELINE.md` — pipeline documentation
|
||||
- `tests/test_know_thy_father_pipeline.py` — orchestrator tests
|
||||
|
||||
### Phase implementation (all on main)
|
||||
| Phase | Description | Script |
|
||||
|-------|-------------|--------|
|
||||
| phase1_media_indexing | Scan archive for media | `scripts/know_thy_father/index_media.py` |
|
||||
| phase2_multimodal_analysis | Process media entries | `scripts/twitter_archive/analyze_media.py` |
|
||||
| phase3_holographic_synthesis | Kernel synthesis | `scripts/know_thy_father/synthesize_kernels.py` |
|
||||
| phase4_cross_reference_audit | Cross-ref audit | `scripts/know_thy_father/crossref_audit.py` |
|
||||
|
||||
### Merged PRs (chronological)
|
||||
- PR #630 — Phase 1: Media indexing
|
||||
- PR #631 — Phase 2: Multimodal analysis
|
||||
- PR #637 — Phase 3: Holographic synthesis
|
||||
- PR #639 — Phase 4: Cross-reference audit
|
||||
- PR #641 — Orchestrator pipeline integration
|
||||
- PR #738 — Prior parent-epic slice (closed)
|
||||
|
||||
### Test coverage
|
||||
- `tests/test_know_thy_father_pipeline.py` — orchestrator
|
||||
- `tests/test_know_thy_father_index.py` — phase 1
|
||||
- `tests/test_know_thy_father_synthesis.py` — phase 3
|
||||
- `tests/test_know_thy_father_crossref.py` — phase 4
|
||||
- `tests/twitter_archive/test_ktf_tracker.py` — tracker
|
||||
- `tests/twitter_archive/test_analyze_media.py` — phase 2
|
||||
|
||||
## Why Refs, Not Closes
|
||||
|
||||
The repo-side parent-epic operational slice is fully implemented on `main`. However, the epic (#582) itself remains open because:
|
||||
|
||||
1. Full archive consumption is not yet complete
|
||||
2. Downstream memory integration is pending
|
||||
3. The orchestrator is functional but not yet exercised against the complete archive
|
||||
|
||||
This verification document provides the proof trail that the orchestrator slice is done, preventing duplicate reimplementation.
|
||||
|
||||
## Verification Commands
|
||||
|
||||
```bash
|
||||
# Verify this issue's test
|
||||
python3 -m pytest tests/test_issue_582_verification.py -q
|
||||
|
||||
# Verify all Know Thy Father tests pass
|
||||
python3 -m pytest tests/test_know_thy_father_pipeline.py tests/test_know_thy_father_index.py tests/test_know_thy_father_synthesis.py tests/test_know_thy_father_crossref.py tests/twitter_archive/test_ktf_tracker.py tests/twitter_archive/test_analyze_media.py -q
|
||||
```
|
||||
@@ -1,109 +0,0 @@
|
||||
"""Verification that the Issue #582 epic orchestration slice exists on main.
|
||||
|
||||
Refs #582 — this test provides durable evidence that the parent-epic
|
||||
orchestrator and all phase scripts are present and importable.
|
||||
"""
|
||||
|
||||
import importlib.util
|
||||
from pathlib import Path
|
||||
import unittest
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parent.parent
|
||||
|
||||
|
||||
class TestIssue582Verification(unittest.TestCase):
|
||||
"""Confirm the Know Thy Father epic slice is on main."""
|
||||
|
||||
def _load_module(self, path: Path, name: str):
|
||||
self.assertTrue(path.exists(), f"missing {path.relative_to(ROOT)}")
|
||||
spec = importlib.util.spec_from_file_location(name, path)
|
||||
self.assertIsNotNone(spec)
|
||||
self.assertIsNotNone(spec.loader)
|
||||
module = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(module)
|
||||
return module
|
||||
|
||||
# --- core orchestrator ---
|
||||
|
||||
def test_epic_pipeline_exists(self):
|
||||
path = ROOT / "scripts" / "know_thy_father" / "epic_pipeline.py"
|
||||
self.assertTrue(path.exists(), "epic_pipeline.py must exist on main")
|
||||
|
||||
def test_epic_pipeline_has_phases(self):
|
||||
mod = self._load_module(
|
||||
ROOT / "scripts" / "know_thy_father" / "epic_pipeline.py",
|
||||
"ktf_epic_pipeline",
|
||||
)
|
||||
self.assertTrue(hasattr(mod, "PHASES"), "PHASES list must be defined")
|
||||
self.assertGreaterEqual(len(mod.PHASES), 4, "at least 4 phases required")
|
||||
|
||||
# --- phase scripts ---
|
||||
|
||||
def test_phase1_media_indexing_exists(self):
|
||||
self.assertTrue(
|
||||
(ROOT / "scripts" / "know_thy_father" / "index_media.py").exists(),
|
||||
"phase1 script index_media.py must exist",
|
||||
)
|
||||
|
||||
def test_phase2_analyze_media_exists(self):
|
||||
self.assertTrue(
|
||||
(ROOT / "scripts" / "twitter_archive" / "analyze_media.py").exists(),
|
||||
"phase2 script analyze_media.py must exist",
|
||||
)
|
||||
|
||||
def test_phase3_synthesize_kernels_exists(self):
|
||||
self.assertTrue(
|
||||
(ROOT / "scripts" / "know_thy_father" / "synthesize_kernels.py").exists(),
|
||||
"phase3 script synthesize_kernels.py must exist",
|
||||
)
|
||||
|
||||
def test_phase4_crossref_audit_exists(self):
|
||||
self.assertTrue(
|
||||
(ROOT / "scripts" / "know_thy_father" / "crossref_audit.py").exists(),
|
||||
"phase4 script crossref_audit.py must exist",
|
||||
)
|
||||
|
||||
# --- documentation ---
|
||||
|
||||
def test_pipeline_docs_exist(self):
|
||||
self.assertTrue(
|
||||
(ROOT / "docs" / "KNOW_THY_FATHER_MULTIMODAL_PIPELINE.md").exists(),
|
||||
"pipeline documentation must exist",
|
||||
)
|
||||
|
||||
def test_verification_doc_exists(self):
|
||||
self.assertTrue(
|
||||
(ROOT / "docs" / "issue-582-verification.md").exists(),
|
||||
"issue-582-verification.md must exist",
|
||||
)
|
||||
|
||||
# --- test coverage ---
|
||||
|
||||
def test_pipeline_tests_exist(self):
|
||||
tests = [
|
||||
"test_know_thy_father_pipeline.py",
|
||||
"test_know_thy_father_index.py",
|
||||
"test_know_thy_father_synthesis.py",
|
||||
"test_know_thy_father_crossref.py",
|
||||
]
|
||||
for name in tests:
|
||||
self.assertTrue(
|
||||
(ROOT / "tests" / name).exists(),
|
||||
f"test file {name} must exist",
|
||||
)
|
||||
|
||||
def test_archive_tests_exist(self):
|
||||
archive_dir = ROOT / "tests" / "twitter_archive"
|
||||
self.assertTrue(
|
||||
(archive_dir / "test_ktf_tracker.py").exists(),
|
||||
"test_ktf_tracker.py must exist",
|
||||
)
|
||||
self.assertTrue(
|
||||
(archive_dir / "test_analyze_media.py").exists(),
|
||||
"test_analyze_media.py must exist",
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user