@@ -33,15 +33,15 @@ jobs:
3333 shell : bash
3434 run : |
3535 pip cache purge || true
36- pip uninstall -y sentienceapi || true
36+ pip uninstall -y predicatelabs || true
3737 # Aggressively clean any bytecode cache (cross-platform Python approach)
3838 python -c "import pathlib; [p.unlink() for p in pathlib.Path('.').rglob('*.pyc')]" || true
3939 python -c "import pathlib, shutil; [shutil.rmtree(p) for p in pathlib.Path('.').rglob('__pycache__') if p.is_dir()]" || true
40- # Also clean .pyc files in sentience package specifically
41- find sentience -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || python -c "import pathlib, shutil; [shutil.rmtree(p) for p in pathlib.Path('sentience ').rglob('__pycache__') if p.is_dir()]" || true
42- find sentience -name "*.pyc" -delete 2>/dev/null || python -c "import pathlib; [p.unlink() for p in pathlib.Path('sentience ').rglob('*.pyc')]" || true
40+ # Also clean .pyc files in predicate package specifically
41+ find predicate -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || python -c "import pathlib, shutil; [shutil.rmtree(p) for p in pathlib.Path('predicate ').rglob('__pycache__') if p.is_dir()]" || true
42+ find predicate -name "*.pyc" -delete 2>/dev/null || python -c "import pathlib; [p.unlink() for p in pathlib.Path('predicate ').rglob('*.pyc')]" || true
4343 # Ensure source uses assert_ (no auto-rewrite).
44- python -c "import sys; import io; sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8', errors='replace') if sys.platform == 'win32' else sys.stdout; content = open('sentience /agent_runtime.py', 'r', encoding='utf-8').read(); assert 'self.assertTrue(' not in content, 'Source file still has self.assertTrue('; print('OK: Source file verified: uses self.assert_()')"
44+ python -c "import sys; import io; sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8', errors='replace') if sys.platform == 'win32' else sys.stdout; content = open('predicate /agent_runtime.py', 'r', encoding='utf-8').read(); assert 'self.assertTrue(' not in content, 'Source file still has self.assertTrue('; print('OK: Source file verified: uses self.assert_()')"
4545
4646 # Force reinstall to ensure latest code
4747 pip install --no-cache-dir --force-reinstall -e ".[dev]"
@@ -55,10 +55,10 @@ jobs:
5555 git branch --show-current || echo "Detached HEAD"
5656 echo ""
5757 echo "=== Verify editable install (should point to local source) ==="
58- python -c "import sentience ; import os; fpath = sentience .__file__; print(f'Package location: {fpath}'); print(f'Is in current dir: {os.path.abspath(fpath).startswith(os.getcwd())}'); print(f'Points to source: {os.path.exists(fpath)}')"
58+ python -c "import predicate ; import os; fpath = predicate .__file__; print(f'Package location: {fpath}'); print(f'Is in current dir: {os.path.abspath(fpath).startswith(os.getcwd())}'); print(f'Points to source: {os.path.exists(fpath)}')"
5959 echo ""
6060 echo "=== Source file line 345 (from repo) ==="
61- sed -n '345p' sentience /agent_runtime.py || python -c "with open('sentience /agent_runtime.py', 'r') as f: lines = f.readlines(); print(lines[344] if len(lines) > 344 else 'NOT FOUND')"
61+ sed -n '345p' predicate /agent_runtime.py || python -c "with open('predicate /agent_runtime.py', 'r') as f: lines = f.readlines(); print(lines[344] if len(lines) > 344 else 'NOT FOUND')"
6262 echo ""
6363 echo "=== Installed package assert_done (from imported module) ==="
6464 python << 'PYEOF'
@@ -72,11 +72,11 @@ jobs:
7272 sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8', errors='replace')
7373 sys.stderr = io.TextIOWrapper(sys.stderr.buffer, encoding='utf-8', errors='replace')
7474
75- from sentience .agent_runtime import AgentRuntime
75+ from predicate .agent_runtime import AgentRuntime
7676
7777 # Verify it's using local source
78- import sentience
79- pkg_path = os.path.abspath(sentience .__file__)
78+ import predicate
79+ pkg_path = os.path.abspath(predicate .__file__)
8080 cwd = os.getcwd()
8181 if not pkg_path.startswith(cwd):
8282 print(f'WARNING: Package is not from local source!')
@@ -120,13 +120,13 @@ jobs:
120120
121121 # Check agent_runtime.py line 345
122122 print("=== Checking agent_runtime.py line 345 ===")
123- with open('sentience /agent_runtime.py', 'r', encoding='utf-8') as f:
123+ with open('predicate /agent_runtime.py', 'r', encoding='utf-8') as f:
124124 lines = f.readlines()
125125 print(''.join(lines[339:350]))
126126
127127 # Verify assert_ method exists
128128 print("\n=== Verifying assert_ method exists ===")
129- with open('sentience /agent_runtime.py', 'r', encoding='utf-8') as f:
129+ with open('predicate /agent_runtime.py', 'r', encoding='utf-8') as f:
130130 lines = f.readlines()
131131 for i, line in enumerate(lines, 1):
132132 if 'def assert_' in line:
@@ -135,7 +135,7 @@ jobs:
135135 # Check for problematic assertTrue patterns (should NOT exist)
136136 print("\n=== Checking for assertTrue patterns (should NOT exist) ===")
137137 import re
138- with open('sentience /agent_runtime.py', 'r', encoding='utf-8') as f:
138+ with open('predicate /agent_runtime.py', 'r', encoding='utf-8') as f:
139139 content = f.read()
140140 # Check for self.assertTrue( - this is the bug
141141 if re.search(r'self\.assertTrue\s*\(', content):
@@ -156,14 +156,14 @@ jobs:
156156 - name : Type check with mypy
157157 continue-on-error : true
158158 run : |
159- mypy sentience --ignore-missing-imports --no-strict-optional
159+ mypy predicate --ignore-missing-imports --no-strict-optional
160160
161161 - name : Check code style
162162 continue-on-error : true
163163 run : |
164- black --check sentience tests --line-length=100
165- isort --check-only --profile black sentience tests
166- flake8 sentience tests --max-line-length=100 --extend-ignore=E203,W503,E501 --max-complexity=15
164+ black --check predicate tests --line-length=100
165+ isort --check-only --profile black predicate tests
166+ flake8 predicate tests --max-line-length=100 --extend-ignore=E203,W503,E501 --max-complexity=15
167167
168168 - name : Build extension (if needed)
169169 if : runner.os != 'Windows'
@@ -192,7 +192,7 @@ jobs:
192192 sys.stderr = io.TextIOWrapper(sys.stderr.buffer, encoding='utf-8', errors='replace')
193193
194194 # Check the source file directly (not the installed package)
195- file_path = 'sentience /agent_runtime.py'
195+ file_path = 'predicate /agent_runtime.py'
196196 if not os.path.exists(file_path):
197197 print(f'WARNING: {file_path} not found!')
198198 sys.exit(0) # Don't fail if file doesn't exist
@@ -248,7 +248,7 @@ jobs:
248248 print("=== Final Pre-Test Verification ===")
249249
250250 # First, verify the source file directly
251- source_file = 'sentience /agent_runtime.py'
251+ source_file = 'predicate /agent_runtime.py'
252252 print(f"=== Checking source file: {source_file} ===")
253253 if not os.path.exists(source_file):
254254 print(f"ERROR: Source file {source_file} not found!")
@@ -282,11 +282,11 @@ jobs:
282282
283283 # Now check the installed package
284284 print("\n=== Checking installed package ===")
285- import sentience .agent_runtime
285+ import predicate .agent_runtime
286286
287287 # Verify it's using local source (editable install)
288- import sentience
289- pkg_path = os.path.abspath(sentience .__file__)
288+ import predicate
289+ pkg_path = os.path.abspath(predicate .__file__)
290290 cwd = os.getcwd()
291291 if not pkg_path.startswith(cwd):
292292 print(f'WARNING: Package is not from local source!')
@@ -296,7 +296,7 @@ jobs:
296296 else:
297297 print(f'OK: Package is from local source: {pkg_path}')
298298
299- src = inspect.getsource(sentience .agent_runtime.AgentRuntime.assert_done)
299+ src = inspect.getsource(predicate .agent_runtime.AgentRuntime.assert_done)
300300
301301 print("assert_done method source:")
302302 print(src)
0 commit comments